C# 클래스 Lucene.Net.Search.FuzzyTermsEnum

Subclass of TermsEnum for enumerating all terms that are similar to the specified filter term.

Term enumerations are always ordered by #getComparator. Each term in the enumeration is greater than all that precede it.

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

보호된 프로퍼티들

프로퍼티 타입 설명
MaxEdits int
MinSimilarity_Renamed float
Raw bool
RealPrefixLength int
Scale_factor float
TermLength int
TermText int[]
Terms Terms

공개 메소드들

메소드 설명
DocFreq ( ) : int
Docs ( Bits liveDocs, DocsEnum reuse, int flags ) : DocsEnum
DocsAndPositions ( Bits liveDocs, DocsAndPositionsEnum reuse, int flags ) : DocsAndPositionsEnum
FuzzyTermsEnum ( Terms terms, Lucene.Net.Util.AttributeSource atts, Term term, float minSimilarity, int prefixLength, bool transpositions ) : System

Constructor for enumeration of all terms from specified reader which share a prefix of length prefixLength with term and which have a fuzzy similarity > minSimilarity.

After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.

Next ( ) : BytesRef
Ord ( ) : long
SeekCeil ( BytesRef text ) : SeekStatus
SeekExact ( BytesRef text ) : bool
SeekExact ( BytesRef term, TermState state ) : void
SeekExact ( long ord ) : void
Term ( ) : BytesRef
TermState ( ) : TermState
TotalTermFreq ( ) : long

보호된 메소드들

메소드 설명
GetAutomatonEnum ( int editDistance, BytesRef lastTerm ) : TermsEnum

return an automata-based enum for matching up to editDistance from lastTerm, if possible

MaxEditDistanceChanged ( BytesRef lastTerm, int maxEdits, bool init ) : void

비공개 메소드들

메소드 설명
BottomChanged ( BytesRef lastTerm, bool init ) : void

fired when the max non-competitive boost has changed. this is the hook to swap in a smarter actualEnum

CalculateMaxBoost ( int nEdits ) : float
InitAutomata ( int maxDistance ) : IList

initialize levenshtein DFAs up to maxDistance, if possible

InitialMaxDistance ( float minimumSimilarity, int termLen ) : int
InitializeInstanceFields ( ) : void

메소드 상세

DocFreq() 공개 메소드

public DocFreq ( ) : int
리턴 int

Docs() 공개 메소드

public Docs ( Bits liveDocs, DocsEnum reuse, int flags ) : DocsEnum
liveDocs Bits
reuse DocsEnum
flags int
리턴 DocsEnum

DocsAndPositions() 공개 메소드

public DocsAndPositions ( Bits liveDocs, DocsAndPositionsEnum reuse, int flags ) : DocsAndPositionsEnum
liveDocs Bits
reuse DocsAndPositionsEnum
flags int
리턴 DocsAndPositionsEnum

FuzzyTermsEnum() 공개 메소드

Constructor for enumeration of all terms from specified reader which share a prefix of length prefixLength with term and which have a fuzzy similarity > minSimilarity.

After calling the constructor the enumeration is already pointing to the first valid term if such a term exists.

if there is a low-level IO error
public FuzzyTermsEnum ( Terms terms, Lucene.Net.Util.AttributeSource atts, Term term, float minSimilarity, int prefixLength, bool transpositions ) : System
terms Terms Delivers terms.
atts Lucene.Net.Util.AttributeSource created by the rewrite method of /// thats contains information about competitive boosts during rewrite. It is also used /// to cache DFAs between segment transitions.
term Term Pattern term.
minSimilarity float Minimum required similarity for terms from the reader. Pass an integer value /// representing edit distance. Passing a fraction is deprecated.
prefixLength int Length of required common prefix. Default value is 0.
transpositions bool
리턴 System

GetAutomatonEnum() 보호된 메소드

return an automata-based enum for matching up to editDistance from lastTerm, if possible
protected GetAutomatonEnum ( int editDistance, BytesRef lastTerm ) : TermsEnum
editDistance int
lastTerm BytesRef
리턴 TermsEnum

MaxEditDistanceChanged() 보호된 메소드

protected MaxEditDistanceChanged ( BytesRef lastTerm, int maxEdits, bool init ) : void
lastTerm BytesRef
maxEdits int
init bool
리턴 void

Next() 공개 메소드

public Next ( ) : BytesRef
리턴 BytesRef

Ord() 공개 메소드

public Ord ( ) : long
리턴 long

SeekCeil() 공개 메소드

public SeekCeil ( BytesRef text ) : SeekStatus
text BytesRef
리턴 SeekStatus

SeekExact() 공개 메소드

public SeekExact ( BytesRef text ) : bool
text BytesRef
리턴 bool

SeekExact() 공개 메소드

public SeekExact ( BytesRef term, TermState state ) : void
term BytesRef
state TermState
리턴 void

SeekExact() 공개 메소드

public SeekExact ( long ord ) : void
ord long
리턴 void

Term() 공개 메소드

public Term ( ) : BytesRef
리턴 BytesRef

TermState() 공개 메소드

public TermState ( ) : TermState
리턴 TermState

TotalTermFreq() 공개 메소드

public TotalTermFreq ( ) : long
리턴 long

프로퍼티 상세

MaxEdits 보호되어 있는 프로퍼티

protected int MaxEdits
리턴 int

MinSimilarity_Renamed 보호되어 있는 프로퍼티

protected float MinSimilarity_Renamed
리턴 float

Raw 보호되어 있는 프로퍼티

protected bool Raw
리턴 bool

RealPrefixLength 보호되어 있는 프로퍼티

protected int RealPrefixLength
리턴 int

Scale_factor 보호되어 있는 프로퍼티

protected float Scale_factor
리턴 float

TermLength 보호되어 있는 프로퍼티

protected int TermLength
리턴 int

TermText 보호되어 있는 프로퍼티

protected int[] TermText
리턴 int[]

Terms 보호되어 있는 프로퍼티

protected Terms Terms
리턴 Terms