You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/03/26 17:49:00 UTC

[jira] [Commented] (SOLR-17714) Fuzzy query to support prefix length and max expansions

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

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

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

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



> 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-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org