Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6800

Support more than 2 maxEdits for the DirectSolrSpellChecker component

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.10.2
    • Fix Version/s: None
    • Component/s: spellchecker
    • Labels:
      None

      Description

      Currently, the IndexSolrSpellChecker and DirectSolrSpellChecker can have a maxEdits value of 1 or 2, which means that a maximum of 2 edits will be performed on the query before giving up on finding correct terms.

      This works fine for simple words, but when the users are searching for a complete sentence, there can be more than 2 errors, especially on languages like French where accents are frequently ignored while typing a query.

      To correct this problem, we would need to specify a higher maxEdits value. An alternative approach would be to have a value named maxEditsPerWord or something like that.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mbouchar Mathieu Bouchard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: