Skip to content

Document breaking change regarding use of solr_local_params as of Solr 7.2 #2020

Open
@magibney

Description

@magibney

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:

This documentation-related issue follows on a number of closed PRs and issues:
#1838, #1839, #1925, #2018

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions