#include <QueryTermVector.h>
◆ QueryTermVector() [1/2]
Lucene::QueryTermVector::QueryTermVector |
( |
Collection< String > |
queryTerms | ) |
|
- Parameters
-
queryTerms | The original list of terms from the query, can contain duplicates |
◆ QueryTermVector() [2/2]
Lucene::QueryTermVector::QueryTermVector |
( |
const String & |
queryString, |
|
|
const AnalyzerPtr & |
analyzer |
|
) |
| |
◆ ~QueryTermVector()
virtual Lucene::QueryTermVector::~QueryTermVector |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::QueryTermVector::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ getClassName()
virtual String Lucene::QueryTermVector::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ getTermFrequencies()
Collection< int32_t > Lucene::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.
Reimplemented from Lucene::TermFreqVector.
◆ getTerms()
Collection< String > Lucene::QueryTermVector::getTerms |
( |
| ) |
|
|
virtual |
◆ indexesOf()
Collection< int32_t > Lucene::QueryTermVector::indexesOf |
( |
Collection< String > |
terms, |
|
|
int32_t |
start, |
|
|
int32_t |
length |
|
) |
| |
|
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
-
terms | array containing terms to look for |
start | index in the array where the list of terms starts |
length | the number of terms in the list |
Reimplemented from Lucene::TermFreqVector.
◆ indexOf()
int32_t Lucene::QueryTermVector::indexOf |
( |
const 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.
Reimplemented from Lucene::TermFreqVector.
◆ processTerms()
void Lucene::QueryTermVector::processTerms |
( |
Collection< String > |
queryTerms | ) |
|
|
protected |
◆ shared_from_this()
boost::shared_ptr< QueryTermVector > Lucene::QueryTermVector::shared_from_this |
( |
| ) |
|
|
inline |
◆ size()
int32_t Lucene::QueryTermVector::size |
( |
| ) |
|
|
virtual |
◆ toString()
virtual String Lucene::QueryTermVector::toString |
( |
| ) |
|
|
virtual |
◆ termFreqs
Collection<int32_t> Lucene::QueryTermVector::termFreqs |
|
protected |
◆ terms
The documentation for this class was generated from the following file: