[ https://issues.apache.org/jira/browse/LUCENE-5410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13880507#comment-13880507 ]
Jack Conradson commented on LUCENE-5410: ---------------------------------------- I think this patch is a good start. Personally, there's two changes I'd like to see. * The first was discussed briefly before, but I'm strongly in favor of having phrase slop be a different operator from fuzzy terms. I can see users wanting phrase slop without wanting fuzzy terms. * The second is I'd strongly prefer to see a separate method for the parsing logic related to slop/fuzzy where it would account for checking if there's a '~' and the integer afterwards. I think it will help clean up the consumeTerm and consumePhrase methods significantly. Once a term/phrase has been found, if fuzzy/slop is on, the method can be called to check for it. > 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, 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