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

Add support for solr spell checking ("Did you mean?") #6923

Open
bicolino34 opened this issue Aug 31, 2022 · 4 comments · May be fixed by #8873
Open

Add support for solr spell checking ("Did you mean?") #6923

bicolino34 opened this issue Aug 31, 2022 · 4 comments · May be fixed by #8873
Assignees
Labels
Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Module: Search Page(s) Issues pertaining to the Search page UI Module: Solr Issues related to the configuration or use of the Solr subsystem. [managed] Priority: 2 Important, as time permits. [managed] Theme: Search Issues related to search UI and backend. [managed] Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed]

Comments

@bicolino34
Copy link
Collaborator

bicolino34 commented Aug 31, 2022

Currently, search is too strict with letters. Compare Безпека життєдіяльності and Безпека життєдіяльност. With just one letter missing ( і ) there are no results.
This possibly can be solved by solr spell checking feature
https://solr.apache.org/guide/8_11/spell-checking.html

Stakeholders

@cdrini

@bicolino34 bicolino34 added Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed] Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] Needs: Lead labels Aug 31, 2022
@kushalShukla-web
Copy link

Hey can I work on this

@tfmorris
Copy link
Contributor

While the "Did you mean" spellcheck feature may be valuable in certain cases, I think for the stated use case using fuzzy search with an edit distance would be a better solution.

https://solr.apache.org/guide/8_11/the-standard-query-parser.html#fuzzy-searches

And, I'd consider this more a bug fix than a feature request. All modern search implementations handle this case with ease.

@mekarpeles mekarpeles added Theme: Search Issues related to search UI and backend. [managed] Module: Solr Issues related to the configuration or use of the Solr subsystem. [managed] Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Module: Search Page(s) Issues pertaining to the Search page UI and removed Needs: Lead labels Sep 6, 2022
@cdrini cdrini added Priority: 2 Important, as time permits. [managed] and removed Needs: Triage This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed] labels Jan 3, 2023
@benbdeitch
Copy link
Contributor

Hello! I've worked on a few other Solr issues, and I'd love to give this one a shot, if you'd assign me to the task. Is the plan to go for the 'fuzzy search' approach, to leverage Solr's spell-checker, or both?

@cdrini
Copy link
Collaborator

cdrini commented Feb 27, 2024

There's a bit of research/experimenting here, I reckon. Thinking/experimenting with strategies for both might be the way to go!

As a note here are the updated docs links:

It might also be worth looking at some books to see if there are any strategies for this. I've had success with the O'Reilly books on solr in the past. Note that my public library gives me free access to the O'Reilly catalogue, so maybe check it that's the case for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lead: @cdrini Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed] Module: Search Page(s) Issues pertaining to the Search page UI Module: Solr Issues related to the configuration or use of the Solr subsystem. [managed] Priority: 2 Important, as time permits. [managed] Theme: Search Issues related to search UI and backend. [managed] Type: Feature Request Issue describes a feature or enhancement we'd like to implement. [managed]
Projects
None yet
6 participants