blacklight
blacklight copied to clipboard
Did you mean doesn't display when you use JSON Query DSL (aka clause_params)
Steps to recreate in a blacklight dev instance:
-
Run
rake blacklight:index:seed -
In your catalog controller, add a clause_params configuration, e.g.
config.add_search_field('title') do |field| field.solr_parameters = { 'spellcheck.dictionary': 'title', qf: '${title_qf}', pf: '${title_pf}' } field.clause_params = { edismax: {} } end -
Do a title search for medicin
-
Note that you do not get "Did you mean Medicine?"
I'm running solr 8.4.1, but I suspect that it is in the blacklight layer, not the solr layer.