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

Upayavira commented on LUCENE-5410:
-----------------------------------

If the point of this query parser is to support the sort of thing that users 
type into search boxes, are they likely to enter fuzzy or phrase slop searches? 
This seems unlikely to me, and seems to take a SimpleQueryParser away from 
being "simple". I'd suggest that if that functionality is to be added, it 
should be added somewhere where it is under programmatic control, not user 
control, such as how the edismax query parser accepts additional request 
parameters.

Thus ps=2 would set a phrase slop. fs=2 could set a value of 2 for fuzzy search 
also. This would seem more in keeping with the goal of a clean, simple query 
parser.


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

Reply via email to