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

Robert Muir commented on LUCENE-5208:
-------------------------------------

Hi, instead of modifying SnowballFilter directly, I think sometign like this 
should instead just be a LengthKeywordMarkerFilter or something.

if (length < X) { keywordAtt.setKeyword(true); }

this will work with all stemmers, not just snowball.
                
> SnowballFilter to support minTokenLength
> ----------------------------------------
>
>                 Key: LUCENE-5208
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5208
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>    Affects Versions: 4.4
>            Reporter: Markus Jelsma
>             Fix For: 5.0
>
>         Attachments: LUCENE-5208-trunk.patch
>
>
> In some cases you don't want the stemmer to consider short tokens. Instead of 
> modifying the snowball code, testing it, compiling it to Java code and the 
> whole hassle, with this patch you can set a minTokenLength.

--
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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to