Separate Lucene logic from Solr query builder.
- Resolves VUFIND-937.