CLucene - a full-featured, c++ search engine
API Documentation
Extends TermFreqVector to provide additional information about positions in which each of the terms is found.
More...
#include <TermVector.h>
Public Member Functions | |
| virtual Array< int32_t > * | getTermPositions (int32_t index)=0 |
| Returns an array of positions in which the term is found. | |
| virtual Array < TermVectorOffsetInfo > * | getOffsets (int32_t index)=0 |
| Returns an array of TermVectorOffsetInfo in which the term is found. | |
| virtual | ~TermPositionVector () |
Extends TermFreqVector to provide additional information about positions in which each of the terms is found.
A TermPositionVector not necessarily contains both positions and offsets, but at least one of these arrays exists.
| virtual lucene::index::TermPositionVector::~TermPositionVector | ( | ) | [inline, virtual] |
| virtual Array<TermVectorOffsetInfo>* lucene::index::TermPositionVector::getOffsets | ( | int32_t | index | ) | [pure virtual] |
Returns an array of TermVectorOffsetInfo in which the term is found.
May return null if offsets have not been stored.
| index | The position in the array to get the offsets from |
Implemented in lucene::index::SegmentTermPositionVector.
| virtual Array<int32_t>* lucene::index::TermPositionVector::getTermPositions | ( | int32_t | index | ) | [pure virtual] |
Returns an array of positions in which the term is found.
Terms are identified by the index at which its number appears in the term String array obtained from the indexOf method. May return null if positions have not been stored.
Implemented in lucene::index::SegmentTermPositionVector.