[ 
https://issues.apache.org/jira/browse/SOLR-12761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16612148#comment-16612148
 ] 

David Smiley commented on SOLR-12761:
-------------------------------------

I think this setting would be best as a request parameter and not requiring 
SolrConfig changes.   I know maxBooleanClauses is not done this way but it's 
due to fundamental limitations of that particular setting at the Lucene level 
that thankfully don't apply here.

> Be able to configure “maxExpansions” for FuzzyQuery
> ---------------------------------------------------
>
>                 Key: SOLR-12761
>                 URL: https://issues.apache.org/jira/browse/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
>            Priority: Minor
>
> 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>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to