Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Properties | List of all members
Lucene.Net.Search.QueryTermVector Class Reference

More...

Inherits Lucene.Net.Index.ITermFreqVector.

Public Member Functions

 QueryTermVector (System.String[] queryTerms)
 
 
 QueryTermVector (System.String queryString, Analyzer analyzer)
 
override System.String ToString ()
 
virtual System.String[] GetTerms ()
 
virtual int[] GetTermFrequencies ()
 Array of term frequencies. Locations of the array correspond one to one to the terms in the array obtained from getTerms method. Each location in the array contains the number of times this term occurs in the document or the document field.
 
virtual int IndexOf (System.String term)
 Return an index in the term numbers array returned from getTerms at which the term with the specified term appears. If this term does not appear in the array, return -1.
 
virtual int[] IndexesOf (System.String[] terms, int start, int len)
 Just like indexOf(int) but searches for a number of terms at the same time. Returns an array that has the same size as the number of terms searched for, each slot containing the result of searching for that term number.
 

Properties

virtual string Field [get]
 
virtual int Size [get]
 
- Properties inherited from Lucene.Net.Index.ITermFreqVector
string Field [get]
 The IFieldable name.
 
int Size [get]
 The number of terms in the term vector.
 

Detailed Description

Definition at line 34 of file QueryTermVector.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.QueryTermVector.QueryTermVector ( System.String[]  queryTerms)

Parameters
queryTermsThe original list of terms from the query, can contain duplicates

Definition at line 47 of file QueryTermVector.cs.

Lucene.Net.Search.QueryTermVector.QueryTermVector ( System.String  queryString,
Analyzer  analyzer 
)

Definition at line 53 of file QueryTermVector.cs.

Member Function Documentation

virtual int [] Lucene.Net.Search.QueryTermVector.GetTermFrequencies ( )
virtual

Array of term frequencies. Locations of the array correspond one to one to the terms in the array obtained from getTerms method. Each location in the array contains the number of times this term occurs in the document or the document field.

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 145 of file QueryTermVector.cs.

virtual System.String [] Lucene.Net.Search.QueryTermVector.GetTerms ( )
virtual
Returns
An Array of term texts in ascending order.

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 140 of file QueryTermVector.cs.

virtual int [] Lucene.Net.Search.QueryTermVector.IndexesOf ( System.String[]  terms,
int  start,
int  len 
)
virtual

Just like indexOf(int) but searches for a number of terms at the same time. Returns an array that has the same size as the number of terms searched for, each slot containing the result of searching for that term number.

Parameters
termsarray containing terms to look for
startindex in the array where the list of terms starts
lenthe number of terms in the list

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 156 of file QueryTermVector.cs.

virtual int Lucene.Net.Search.QueryTermVector.IndexOf ( System.String  term)
virtual

Return an index in the term numbers array returned from getTerms at which the term with the specified term appears. If this term does not appear in the array, return -1.

Implements Lucene.Net.Index.ITermFreqVector.

Definition at line 150 of file QueryTermVector.cs.

override System.String Lucene.Net.Search.QueryTermVector.ToString ( )

Definition at line 120 of file QueryTermVector.cs.

Property Documentation

virtual string Lucene.Net.Search.QueryTermVector.Field
get

Definition at line 40 of file QueryTermVector.cs.

virtual int Lucene.Net.Search.QueryTermVector.Size
get

Definition at line 136 of file QueryTermVector.cs.


The documentation for this class was generated from the following file: