[
https://issues.apache.org/jira/browse/LUCENE-5410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879319#comment-13879319
]
Robert Muir commented on LUCENE-5410:
-------------------------------------
Hi Lee, in general this seems like a good approach.
Can we avoid the changes to QueryBuilder? The purpose of QueryBuilder is to
interact with the analysis chain, and thats not typically how fuzzy queries are
handled (for the same reason QueryBuilder has no prefix logic, so I think the
case should be handled in a similar fashion). This way we can avoid adding
methods like createFuzzyBooleanQuery, newTermOrFuzzyQuery and so on.
As far as the parser itself, I don't like having both newPhraseQuery(String)
and newPhraseQuery(String, int). Can we just nuke the first one and have the
latter instead? Exact phrase queries can just past 0 here.
Can we add the tilde operator to the list in testRandomQueries2 ?
> 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: [email protected]
For additional commands, e-mail: [email protected]