blacklight icon indicating copy to clipboard operation
blacklight copied to clipboard

Did you mean doesn't display when you use JSON Query DSL (aka clause_params)

Open sandbergja opened this issue 2 years ago • 0 comments

Steps to recreate in a blacklight dev instance:

  1. Run rake blacklight:index:seed

  2. 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
    
  3. Do a title search for medicin

  4. 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.

sandbergja avatar Aug 01 '23 21:08 sandbergja