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

ASF subversion and git services commented on SOLR-17714:
--------------------------------------------------------

Commit e304abea41e10de5418b9811d3217de16a83309a in solr's branch 
refs/heads/branch_9x from Houston Putman
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=e304abea41e ]

SOLR-17714: Add a FuzzyQParser for all FuzzyQuery customizations (#3281)

(cherry picked from commit e3e99d81799fdce7ee18ef091d85529956783ff2)


> 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: 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

Reply via email to