[ https://issues.apache.org/jira/browse/SOLR-17714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Siju Varghese updated SOLR-17714: --------------------------------- Description: Currently solr supports fuzzy query variants with the "~" operator. [https://solr.apache.org/guide/6_6/the-standard-query-parser.html] Lucene supports prefix length and max expansion parameters for fuzzy query. The prefix length parameter is quite useful because it maintains the configured prefix from the original token. In the absence of this, a user could get undesired results, ex : for foor~1 where the user intended foor to get corrected to food, it will correct to door etc, It will be a useful feature to have where we can configure these parameters per fuzzy query. For ex, something like this should be possible ( ignore the syntax ) name:car AND (type:mazde~1,2,10 OR type:totoye~2,3,20) where 1,2,10 for mazde means, 1 edit distance keeping 2 characters in prefix and max of 10 expansions. For totoye 2 edits, 3 prefix length max 20 expansions was: Currently solr supports fuzzy query variants with the "~" operator. [https://solr.apache.org/guide/6_6/the-standard-query-parser.html] Lucene supports prefix length and max expansion parameters for fuzzy query. The prefix length parameter is quite useful because it maintains the configured prefix from the original token. In the absence of this, a user could get undesired results, ex : for foor~1 where the user intended foor to get corrected to food, it will correct to door etc, It will be a useful feature to have where we can configure these parameters per fuzzy query. > Fuzzy query to support prefix length and max expansions > ------------------------------------------------------- > > Key: SOLR-17714 > URL: https://issues.apache.org/jira/browse/SOLR-17714 > Project: Solr > Issue Type: Improvement > Components: SearchComponents - other > Reporter: Siju Varghese > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Currently solr supports fuzzy query variants with the "~" operator. > [https://solr.apache.org/guide/6_6/the-standard-query-parser.html] > Lucene supports prefix length and max expansion parameters for fuzzy query. > The prefix length parameter is quite useful because it maintains the > configured prefix from the original token. In the absence of this, a user > could get undesired results, ex : for foor~1 where the user intended foor to > get corrected to food, it will correct to door etc, > It will be a useful feature to have where we can configure these parameters > per fuzzy query. > > For ex, something like this should be possible ( ignore the syntax ) > name:car AND (type:mazde~1,2,10 OR type:totoye~2,3,20) > where 1,2,10 for mazde means, 1 edit distance keeping 2 characters in prefix > and max of 10 expansions. For totoye 2 edits, 3 prefix length max 20 > expansions -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org