Working only on some misspelled words

Created on 21 July 2023, almost 2 years ago

I have followed gotten this only partly working, on Drupal 10 for what it's worth. I have the view header configured to display both spelling suggestions and "did you mean".

Working example: if I search "pster" it will display:

"Did you mean: poster ?
Spellcheck keyword variations:
poster"

Not working: if I search "Annxation" or "annxation" it suggests nothing and shows now spelling errors either.

My Search API Solr fields include two aggregated fields, one for spellcheck and one for suggester. I set both up as a 'Auto aggregated fulltext field' (An automatic aggregation of all fulltext fields of the same kind of the same language.). I did also test setting these up as Title fields, but it made no difference. "Poster" and "Annexation" both exist in the titles of the nodes in my result set, so I am baffled why "Annxation" does not provide spellcheck or suggestion results. Maybe I need to adjust Solr somehow, or re-import my config.zip... I don't know and am hesitant to do this if not necessary. I can find precious little documentation.

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States caspervoogt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @caspervoogt
  • +1 also have found that only limited number of words are spell checked for example nd does not suggest anything, I would and to be an suggestion.

  • πŸ‡¨πŸ‡¦Canada man-1982

    Hi,
    Option 1:

    both exist in the titles of the nodes

    try to add separate index by field title and in the Type pick up "Spellcheck"
    Reindex. Than search.
    You can localize the problem and can understand the direction.

    Option 2:
    install Solr devel https://www.drupal.org/project/solr_devel β†’ and have a look to the query sending to the solr
    aslo xdebug and step-by-step debugin. You can start from:
    docroot/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php: 1827 ...$this->setSpellcheck(

Production build 0.71.5 2024