hab / solr
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phan/phan: ^2.4
- phpstan/phpstan: ^0.11.19
- phpunit/phpunit: ^8.4
This package is not auto-updated.
Last update: 2024-11-02 14:40:51 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 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.