C# Class Lucene.Net.Search.MultiPhraseQuery

Inheritance: Query
ファイルを表示 Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
Add ( Lucene.Net.Index.Term term ) : void

Add a single term at the next position in the phrase.

Add ( Lucene.Net.Index.Term terms, int position ) : void

Allows to specify the relative position of terms within the phrase.

CreateWeight ( Searcher searcher ) : Weight
Equals ( System o ) : bool

Returns true if o is equal to this.

ExtractTerms ( System terms ) : void
GetHashCode ( ) : int

Returns a hash code value for this object.

GetPositions ( ) : int[]

Returns the relative positions of terms in this phrase.

Rewrite ( Lucene.Net.Index.IndexReader reader ) : Query
TermEquals ( System array1, System array2 ) : bool
ToString ( System f ) : System.String

Prints a user-readable version of this query.

Private Methods

Method Description
ArraysHashCode ( Lucene.Net.Index.Term termArray ) : int
GetTermArrays ( ) : System.Collections.Generic.IList
TermArraysEquals ( System termArrays1, System termArrays2 ) : bool
TermArraysHashCode ( ) : int

Method Details

Add() public method

Add a single term at the next position in the phrase.
public Add ( Lucene.Net.Index.Term term ) : void
term Lucene.Net.Index.Term
return void

Add() public method

Allows to specify the relative position of terms within the phrase.
public Add ( Lucene.Net.Index.Term terms, int position ) : void
terms Lucene.Net.Index.Term ///
position int ///
return void

CreateWeight() public method

public CreateWeight ( Searcher searcher ) : Weight
searcher Searcher
return Weight

Equals() public method

Returns true if o is equal to this.
public Equals ( System o ) : bool
o System
return bool

ExtractTerms() public method

public ExtractTerms ( System terms ) : void
terms System
return void

GetHashCode() public method

Returns a hash code value for this object.
public GetHashCode ( ) : int
return int

GetPositions() public method

Returns the relative positions of terms in this phrase.
public GetPositions ( ) : int[]
return int[]

Rewrite() public method

public Rewrite ( Lucene.Net.Index.IndexReader reader ) : Query
reader Lucene.Net.Index.IndexReader
return Query

TermEquals() public static method

public static TermEquals ( System array1, System array2 ) : bool
array1 System
array2 System
return bool

ToString() public method

Prints a user-readable version of this query.
public ToString ( System f ) : System.String
f System
return System.String