C# Class Lucene.Net.Search.PhraseQuery

Inheritance: Query
Datei anzeigen Open project: synhershko/lucene.net Class Usage Examples

Public Methods

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

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.

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

Adds a term to the end of the query phrase. The relative position of the term within the phrase is specified explicitly. This allows e.g. phrases with more than one term at the same position or phrases with gaps (e.g. in connection with stopwords).

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

Returns true iff o is equal to this.

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

Returns a hash code value for this object.

GetPositions ( ) : int[]

Returns the relative positions of terms in this phrase.

GetTerms ( ) : Term[]

Returns the set of terms in this phrase.

PhraseQuery ( ) : System

Constructs an empty phrase query.

ToString ( System f ) : System.String

Prints a user-readable version of this query.

Method Details

Add() public method

Adds a term to the end of the query phrase. The relative position of the term is the one immediately after the last term added.
public Add ( Lucene.Net.Index.Term term ) : void
term Lucene.Net.Index.Term
return void

Add() public method

Adds a term to the end of the query phrase. The relative position of the term within the phrase is specified explicitly. This allows e.g. phrases with more than one term at the same position or phrases with gaps (e.g. in connection with stopwords).
public Add ( Lucene.Net.Index.Term term, int position ) : void
term 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 iff o is equal to this.
public Equals ( System o ) : bool
o System
return bool

ExtractTerms() public method

public ExtractTerms ( System queryTerms ) : void
queryTerms 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[]

GetTerms() public method

Returns the set of terms in this phrase.
public GetTerms ( ) : Term[]
return Term[]

PhraseQuery() public method

Constructs an empty phrase query.
public PhraseQuery ( ) : System
return System

ToString() public method

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