C# 클래스 Lucene.Net.Analysis.Query.QueryAutoStopWordAnalyzer

An Analyzer used primarily at query time to wrap another analyzer and provide a layer of protection which prevents very common words from being passed into queries.

For very large indexes the cost of reading TermDocs for a very common word can be high. This analyzer was created after experience with a 38 million doc index which had a term in around 50% of docs and was causing TermQueries for this term to take 2 seconds.

상속: AnalyzerWrapper
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
AddStopWords ( IndexReader reader ) : int
AddStopWords ( IndexReader reader, String fieldName, float maxPercentDocs ) : int
AddStopWords ( IndexReader reader, String fieldName, int maxDocFreq ) : int
AddStopWords ( IndexReader reader, float maxPercentDocs ) : int
AddStopWords ( IndexReader reader, int maxDocFreq ) : int
GetStopWords ( String fieldName ) : String[]
GetStopWords ( ) : Lucene.Net.Index.Term[]
QueryAutoStopWordAnalyzer ( Lucene.Net.Util.Version matchVersion, Analyzer _delegate ) : System
ReusableTokenStream ( String fieldName, TextReader reader ) : TokenStream
TokenStream ( String fieldName, TextReader reader ) : TokenStream

메소드 상세

AddStopWords() 공개 메소드

public AddStopWords ( IndexReader reader ) : int
reader Lucene.Net.Index.IndexReader
리턴 int

AddStopWords() 공개 메소드

public AddStopWords ( IndexReader reader, String fieldName, float maxPercentDocs ) : int
reader Lucene.Net.Index.IndexReader
fieldName String
maxPercentDocs float
리턴 int

AddStopWords() 공개 메소드

public AddStopWords ( IndexReader reader, String fieldName, int maxDocFreq ) : int
reader Lucene.Net.Index.IndexReader
fieldName String
maxDocFreq int
리턴 int

AddStopWords() 공개 메소드

public AddStopWords ( IndexReader reader, float maxPercentDocs ) : int
reader Lucene.Net.Index.IndexReader
maxPercentDocs float
리턴 int

AddStopWords() 공개 메소드

public AddStopWords ( IndexReader reader, int maxDocFreq ) : int
reader Lucene.Net.Index.IndexReader
maxDocFreq int
리턴 int

GetStopWords() 공개 메소드

public GetStopWords ( String fieldName ) : String[]
fieldName String
리턴 String[]

GetStopWords() 공개 메소드

public GetStopWords ( ) : Lucene.Net.Index.Term[]
리턴 Lucene.Net.Index.Term[]

QueryAutoStopWordAnalyzer() 공개 메소드

public QueryAutoStopWordAnalyzer ( Lucene.Net.Util.Version matchVersion, Analyzer _delegate ) : System
matchVersion Lucene.Net.Util.Version
_delegate Analyzer
리턴 System

ReusableTokenStream() 공개 메소드

public ReusableTokenStream ( String fieldName, TextReader reader ) : TokenStream
fieldName String
reader TextReader
리턴 TokenStream

TokenStream() 공개 메소드

public TokenStream ( String fieldName, TextReader reader ) : TokenStream
fieldName String
reader TextReader
리턴 TokenStream