[ https://issues.apache.org/jira/browse/SOLR-17714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Houston Putman resolved SOLR-17714. ----------------------------------- Fix Version/s: 9.9 Assignee: Houston Putman Resolution: Implemented > 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 > Assignee: Houston Putman > Priority: Major > Labels: pull-request-available > Fix For: 9.9 > > Time Spent: 0.5h > 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