Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
TermPositionVector.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef TERMPOSITIONVECTOR_H
8#define TERMPOSITIONVECTOR_H
9
10#include "TermFreqVector.h"
11
12namespace Lucene {
13
16class LPPAPI TermPositionVector : public TermFreqVector {
17protected:
19
20public:
23
24public:
27 virtual Collection<int32_t> getTermPositions(int32_t index);
28
34};
35
36}
37
38#endif
#define LUCENE_INTERFACE(Name)
Definition LuceneObject.h:19
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Provides access to stored term vector of a document field. The vector consists of the name of the fie...
Definition TermFreqVector.h:18
Extends TermFreqVector to provide additional information about positions in which each of the terms i...
Definition TermPositionVector.h:16
virtual Collection< TermVectorOffsetInfoPtr > getOffsets(int32_t index)
Returns an array of TermVectorOffsetInfo in which the term is found. May return null if offsets have ...
virtual Collection< int32_t > getTermPositions(int32_t index)
Returns an array of positions in which the term is found. Terms are identified by the index at which ...
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net