Skip to content
Snippets Groups Projects
user avatar
David Maus authored
48796e59
History

HAB Solr

This library implements facetted Solr search. It started as a spin-off of VuFind's search component but simplified the communication with the Solr backend. It implements the Command pattern and provides customizable access to facets. The concept of generic parameter providers and response consumers makes it easy to implemented access to Solr features not covered by this library.

HAB Solr is Copyright (c) 2016-2019 by Herzog August Bibliothek Wolfenbüttel and released under the terms of the GNU General Public License v3 or higher.

Using the invoker

The Invoker reads the query parameters from the Command, optionally merges them with static or dynamic default parameters, and communicates with the Solr backend using a Guzzle HTTP client.

The body of the Solr response is passed to Command.

Using the Invoker

Using the search command

The Search command performs a search on a Solr query handler.

The search query is represented by an ArrayObject and translated into a Solr search query by a QueryBuilder. The default implementation performs a 1:1 mapping of the ArrayObject's keys and values to Solr search parameters.