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

Be able to configure “maxExpansions” for FuzzyQuery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.3
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None

      Description

      We had an issue where we reached the expansion limit of the FuzzyQuery.

      Situation:

      • Query «meier~» found «Meier»
      • Query «mazer~» found «Meier»
      • Query «maxer~» found «Meier»
      • Query «mayer~» did NOT find «Meier»

      The parameter “maxBooleanClauses” does not help in this situation since the “maxExpansions” FuzzyQuery of is never set in Solr and therefore the default value of 50 is used. Details: “SolrQuery-ParserBase” calles the default constructor new FuzzyQuery(Term term, int maxEdits, int pre-fixLength) and therefore FuzzyQuery run always with the default values defaultMaxExpansions = 50 and defaultTranspositions = true)

      Suggestion expose FuzzyQuery parameters in solrconfig.xm like e.g.
      <maxBooleanClauses>1024</maxBooleanClauses>

      Addtion would be:
      <fuzzyPrefixLength>0</fuzzyPrefixLength>
      <fuzzyMaxExpansions>50</fuzzyMaxExpansions>
      <fuzzyTranspositions>true</fuzzyTranspositions>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              guebeli ManuelG
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: