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

Robert Muir commented on LUCENE-4284:
-------------------------------------

The constructor is deprecated because you should set the ignoreCase
property on the CharArraySet (the stopwords list itself) that you pass in.

This is described in the javadocs, basically stopfilter does not have any case 
sensitivity options.
this is instead controlled in the set (see makeStopSet etc, you can construct a 
case-sensitive ones)

{noformat}
   * If <code>stopWords</code> is an instance of {@link CharArraySet} (true if
   * <code>makeStopSet()</code> was used to construct the set) it will be 
directly used
   * and <code>ignoreCase</code> will be ignored since <code>CharArraySet</code>
   * directly controls case sensitivity.
   * <p/>
   * If <code>stopWords</code> is not an instance of {@link CharArraySet},
   * a new CharArraySet will be constructed and <code>ignoreCase</code> will be
   * used to specify the case sensitivity of that set.
   * @deprecated Use {@link #StopFilter(Version, TokenStream, Set)} instead
{noformat}

                
> RFE: stopword filter without lowercase side-effect
> --------------------------------------------------
>
>                 Key: LUCENE-4284
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4284
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Sam Halliday
>            Priority: Minor
>
> It would appear that accept()-time lowercasing of Tokens is not favourable 
> anymore, due to the @Deprecation of the only constructor in StopFilter that 
> allows this.
> Please support some way to allow stop-word removal without lowercasing the 
> output:
>   http://stackoverflow.com/questions/11777785

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]

Reply via email to