![]() |
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.
|
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] |
![]() | |
string | Field [get] |
The IFieldable name. | |
int | Size [get] |
The number of terms in the term vector. | |
Definition at line 34 of file QueryTermVector.cs.
Lucene.Net.Search.QueryTermVector.QueryTermVector | ( | System.String[] | queryTerms | ) |
queryTerms | The 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.
|
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 |
Implements Lucene.Net.Index.ITermFreqVector.
Definition at line 140 of file QueryTermVector.cs.
|
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.
terms | array containing terms to look for |
start | index in the array where the list of terms starts |
len | the number of terms in the list |
Implements Lucene.Net.Index.ITermFreqVector.
Definition at line 156 of file QueryTermVector.cs.
|
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.
|
get |
Definition at line 40 of file QueryTermVector.cs.
|
get |
Definition at line 136 of file QueryTermVector.cs.