lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Gübeli (JIRA) <>
Subject [jira] [Created] (SOLR-12761) Be able to configure “maxExpansions” for FuzzyQuery
Date Mon, 10 Sep 2018 19:15:00 GMT
Manuel Gübeli created SOLR-12761:

             Summary: Be able to configure “maxExpansions” for FuzzyQuery
                 Key: SOLR-12761
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: 7.3
            Reporter: Manuel Gübeli

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

 * 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. 
Addtion would be:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message