hab/solr

There is no license information available for the latest version (v1.0.1) of this package.

v1.0.1 2020-07-16 13:14 UTC

This package is not auto-updated.

Last update: 2024-04-20 12:04:13 UTC


README

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.