Lucene++ - a full-featured, c++ search engine
API Documentation
#include <QueryTermVector.h>
Public Member Functions | |
QueryTermVector (Collection< String > queryTerms) | |
QueryTermVector (const String &queryString, const AnalyzerPtr &analyzer) | |
virtual | ~QueryTermVector () |
virtual String | getClassName () |
boost::shared_ptr< QueryTermVector > | shared_from_this () |
virtual String | toString () |
Returns a string representation of the object. More... | |
int32_t | size () |
Collection< String > | getTerms () |
Collection< int32_t > | 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. More... | |
int32_t | indexOf (const 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. More... | |
Collection< int32_t > | indexesOf (Collection< String > terms, int32_t start, int32_t length) |
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. More... | |
![]() | |
virtual | ~TermFreqVector () |
virtual String | getField () |
The Fieldable name. More... | |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. More... | |
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
Return clone of this object. More... | |
virtual int32_t | hashCode () |
Return hash code for this object. More... | |
virtual bool | equals (const LuceneObjectPtr &other) |
Return whether two objects are equal. More... | |
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
Compare two objects. More... | |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. More... | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. More... | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. More... | |
virtual void | unlock () |
Unlock this object. More... | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. More... | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. More... | |
virtual void | notifyAll () |
Notify all threads waiting for signal. More... | |
Static Public Member Functions | |
static String | _getClassName () |
![]() | |
static String | _getClassName () |
Protected Member Functions | |
void | processTerms (Collection< String > queryTerms) |
![]() | |
TermFreqVector () | |
![]() | |
LuceneObject () | |
Protected Attributes | |
Collection< String > | terms |
Collection< int32_t > | termFreqs |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Lucene::QueryTermVector::QueryTermVector | ( | Collection< String > | queryTerms | ) |
queryTerms | The original list of terms from the query, can contain duplicates |
Lucene::QueryTermVector::QueryTermVector | ( | const String & | queryString, |
const AnalyzerPtr & | analyzer | ||
) |
|
virtual |
|
inlinestatic |
|
inlinevirtual |
Reimplemented from Lucene::TermFreqVector.
|
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.
|
virtual |
Reimplemented from Lucene::TermFreqVector.
|
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 |
length | the number of terms in the list |
Reimplemented from Lucene::TermFreqVector.
|
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.
|
protected |
|
inline |
|
virtual |
Reimplemented from Lucene::TermFreqVector.
|
virtual |
Returns a string representation of the object.
Reimplemented from Lucene::LuceneObject.
|
protected |
|
protected |