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

Lee Hinman edited comment on LUCENE-5410 at 1/23/14 9:30 PM:
-------------------------------------------------------------

Okay, I misunderstood then, I was thinking "the ~2 syntax has no meaning 
whatever" meant *no* meaning (ie, ignore it entirely). I will keep the current 
behavior of {{foo~2}} being a TermQuery for "foo~2" and {{"foo bar"~2}} being a 
BooleanQuery of the PhraseQuery "foo bar" and a TermQuery for "~2".


was (Author: dakrone):
Okay, I misunderstood then, I was thinking "the ~2 syntax has no meaning 
whatever" meant *no* meaning (ie, ignore it entirely). I will keep the current 
behavior of {{foo~2}} being a TermQuery for "foo~2" and {{{"foo bar"~2}}} being 
a BooleanQuery of the PhraseQuery "foo bar" and a TermQuery for "~2".

> Add fuzziness support to SimpleQueryParser
> ------------------------------------------
>
>                 Key: LUCENE-5410
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5410
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/queryparser
>    Affects Versions: 4.7
>            Reporter: Lee Hinman
>            Priority: Minor
>         Attachments: LUCENE-5410.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> It would be nice to add fuzzy query support to the {{SimpleQueryParser}} so 
> that:
> {{foo~2}}
> generates a {{FuzzyQuery}} with an max edit distance of 2 and:
> {{"foo bar"~2}}
> generates a {{PhraseQuery}} with a slop of 2.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to