Description
For users interested in upgrading Solr backend, Solr 7.2+ introduces a change in handling of local parameters (solr_local_parameters
) that is likely to break many existing BL configurations.The upstream change SOLR-11501 introduces a change that I'll paraphrase as:
Local parameters in Solr queries (solr_local_parameters
, in BL parlance) are treated as naive user input starting with Solr 7.2. This encompasses (but is not limited to) query parser switching.
The default blacklight generator, and consequently many existing Solr configurations, incorporate heavy use of solr_local_parameters
in catalog_controller.rb
search field configuration.
Most existing configurations can be made compatible with the new query parsing restrictions by setting top-level query parameters (BL solr_parameters
, as opposed to solr_local_parameters
) for defType
, and specific parser configuration (e.g., for defType=edismax
: qf
, pf
, etc.).
If you have a reason to need local parameters, set the top-level defType=lucene
. This is the approach taken by the blacklight_advanced_search commit (below), and is appropriate for instance in cases where complex queries are constructed (e.g., using _query_="..."
subqueries.
Some relevant links:
- https://github.com/sul-dlss/SearchWorks/pull/1900/files (example of how to update existing config)
- Update query to work with Solr 7.2 #1820
- projectblacklight/blacklight_advanced_search@0432167bedf
This documentation-related issue follows on a number of closed PRs and issues:
#1838, #1839, #1925, #2018