C# Class Lucene.Net.Search.PhraseQuery

Inheritance: Query
Afficher le fichier Open project: synhershko/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat void

Add() public méthode

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 ///
Résultat void

CreateWeight() public méthode

public CreateWeight ( Searcher searcher ) : Weight
searcher Searcher
Résultat Weight

Equals() public méthode

Returns true iff o is equal to this.
public Equals ( System o ) : bool
o System
Résultat bool

ExtractTerms() public méthode

public ExtractTerms ( System queryTerms ) : void
queryTerms System
Résultat void

GetHashCode() public méthode

Returns a hash code value for this object.
public GetHashCode ( ) : int
Résultat int

GetPositions() public méthode

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

GetTerms() public méthode

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

PhraseQuery() public méthode

Constructs an empty phrase query.
public PhraseQuery ( ) : System
Résultat System

ToString() public méthode

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