Constructor QueryAutoStopWordAnalyzer
QueryAutoStopWordAnalyzer(LuceneVersion, Analyzer, IndexReader)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all indexed fields from terms with a document frequency percentage greater than defaultMaxDocFreqPercent
Declaration
public QueryAutoStopWordAnalyzer(LuceneVersion matchVersion, Analyzer delegate, IndexReader indexReader)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Version to be used in StopFilter |
Analyzer | delegate | Analyzer whose TokenStream will be filtered |
IndexReader | indexReader | IndexReader to identify the stopwords from |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Can be thrown while reading from the IndexReader |
QueryAutoStopWordAnalyzer(LuceneVersion, Analyzer, IndexReader, Int32)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency greater than the given
maxDocFreq
Declaration
public QueryAutoStopWordAnalyzer(LuceneVersion matchVersion, Analyzer delegate, IndexReader indexReader, int maxDocFreq)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Version to be used in StopFilter |
Analyzer | delegate | Analyzer whose TokenStream will be filtered |
IndexReader | indexReader | IndexReader to identify the stopwords from |
System.Int32 | maxDocFreq | Document frequency terms should be above in order to be stopwords |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Can be thrown while reading from the IndexReader |
QueryAutoStopWordAnalyzer(LuceneVersion, Analyzer, IndexReader, Single)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for all
indexed fields from terms with a document frequency percentage greater than
the given maxPercentDocs
Declaration
public QueryAutoStopWordAnalyzer(LuceneVersion matchVersion, Analyzer delegate, IndexReader indexReader, float maxPercentDocs)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Version to be used in StopFilter |
Analyzer | delegate | Analyzer whose TokenStream will be filtered |
IndexReader | indexReader | IndexReader to identify the stopwords from |
System.Single | maxPercentDocs | The maximum percentage (between 0.0 and 1.0) of index documents which contain a term, after which the word is considered to be a stop word |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Can be thrown while reading from the IndexReader |
QueryAutoStopWordAnalyzer(LuceneVersion, Analyzer, IndexReader, ICollection<String>, Single)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the
given selection of fields from terms with a document frequency percentage
greater than the given maxPercentDocs
Declaration
public QueryAutoStopWordAnalyzer(LuceneVersion matchVersion, Analyzer delegate, IndexReader indexReader, ICollection<string> fields, float maxPercentDocs)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Version to be used in StopFilter |
Analyzer | delegate | Analyzer whose TokenStream will be filtered |
IndexReader | indexReader | IndexReader to identify the stopwords from |
System.Collections.Generic.ICollection<System.String> | fields | Selection of fields to calculate stopwords for |
System.Single | maxPercentDocs | The maximum percentage (between 0.0 and 1.0) of index documents which contain a term, after which the word is considered to be a stop word |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Can be thrown while reading from the IndexReader |
QueryAutoStopWordAnalyzer(LuceneVersion, Analyzer, IndexReader, ICollection<String>, Int32)
Creates a new QueryAutoStopWordAnalyzer with stopwords calculated for the
given selection of fields from terms with a document frequency greater than
the given maxDocFreq
Declaration
public QueryAutoStopWordAnalyzer(LuceneVersion matchVersion, Analyzer delegate, IndexReader indexReader, ICollection<string> fields, int maxDocFreq)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Version to be used in StopFilter |
Analyzer | delegate | Analyzer whose TokenStream will be filtered |
IndexReader | indexReader | IndexReader to identify the stopwords from |
System.Collections.Generic.ICollection<System.String> | fields | Selection of fields to calculate stopwords for |
System.Int32 | maxDocFreq | Document frequency terms should be above in order to be stopwords |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Can be thrown while reading from the IndexReader |