Create an interface for building a Solr request. Fixes #664