Class StopFilterFactory
Factory for StopFilter.
<fieldType name="text_stop" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" format="wordset" />
</analyzer>
</fieldType>
All attributes are optional:
ignoreCase
defaults tofalse
words
should be the name of a stopwords file to parse, if not specified the factory will use ENGLISH_STOP_WORDS_SETformat
defines how thewords
file will be parsed, and defaults towordset
. Ifwords
is not specified, thenformat
must not be specified.
The valid values for the format
option are:
wordset
- This is the default format, which supports one word per line (including any intra-word whitespace) and allows whole line comments begining with the "#" character. Blank lines are ignored. See GetLines(Stream, Encoding) for details.snowball
- This format allows for multiple words specified on each line, and trailing comments may be specified using the vertical line ("|"). Blank lines are ignored. See GetSnowballWordSet(TextReader, LuceneVersion) for details.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public class StopFilterFactory : TokenFilterFactory, IResourceLoaderAware
Constructors
Name | Description |
---|---|
StopFilterFactory(IDictionary<String, String>) | Creates a new StopFilterFactory |
Fields
Name | Description |
---|---|
FORMAT_SNOWBALL | |
FORMAT_WORDSET |
Properties
Name | Description |
---|---|
EnablePositionIncrements | |
IgnoreCase | |
StopWords |
Methods
Name | Description |
---|---|
Create(TokenStream) | |
Inform(IResourceLoader) |