Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sandbergja opened this issue Aug 1, 2023 · 0 comments · May be fixed by #3065
Open

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

sandbergja opened this issue Aug 1, 2023 · 0 comments · May be fixed by #3065
Assignees

Comments

@sandbergja
Copy link
Contributor

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 sandbergja self-assigned this Aug 1, 2023
@sandbergja sandbergja linked a pull request Aug 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant