C# Класс Lucene.Net.Search.PhraseQuery

Наследование: Query
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

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
Результат void

Add() публичный Метод

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 ///
Результат void

CreateWeight() публичный Метод

public CreateWeight ( Searcher searcher ) : Weight
searcher Searcher
Результат Weight

Equals() публичный Метод

Returns true iff o is equal to this.
public Equals ( System o ) : bool
o System
Результат bool

ExtractTerms() публичный Метод

public ExtractTerms ( System queryTerms ) : void
queryTerms System
Результат void

GetHashCode() публичный Метод

Returns a hash code value for this object.
public GetHashCode ( ) : int
Результат int

GetPositions() публичный Метод

Returns the relative positions of terms in this phrase.
public GetPositions ( ) : int[]
Результат int[]

GetTerms() публичный Метод

Returns the set of terms in this phrase.
public GetTerms ( ) : Term[]
Результат Term[]

PhraseQuery() публичный Метод

Constructs an empty phrase query.
public PhraseQuery ( ) : System
Результат System

ToString() публичный Метод

Prints a user-readable version of this query.
public ToString ( System f ) : System.String
f System
Результат System.String