[
https://issues.apache.org/jira/browse/LUCENE-5165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13739798#comment-13739798
]
ASF subversion and git services commented on LUCENE-5165:
---------------------------------------------------------
Commit 1513940 from [~mikemccand] in branch 'dev/trunk'
[ https://svn.apache.org/r1513940 ]
LUCENE-5165: add SuggestStopFilter
> Add SuggestStopFilter
> ---------------------
>
> Key: LUCENE-5165
> URL: https://issues.apache.org/jira/browse/LUCENE-5165
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spellchecker
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 5.0, 4.5
>
> Attachments: LUCENE-5165.patch
>
>
> This is like StopFilter, except if the token is the very last token
> and there were no non-token characters after it, it keeps the token.
> This is useful with analyzing suggesters (AnalyzingSuggester,
> AnalyzingInfixSuggester, FuzzySuggester), where you often want to
> remove stop words, but not if it's the last word and the user hasn't
> finished typing it.
> E.g. "fast a" might complete to "fast amoeba", but if you simply use
> StopFilter then the a is removed.
> Really our analysis APIs aren't quite designed to handle a "partial"
> tokens that suggesters need to work with.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]