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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

TermPositionVector.h
Go to the documentation of this file.
1 // 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
12 namespace Lucene {
13
16 class LPPAPI TermPositionVector : public TermFreqVector {
17 protected:
18 TermPositionVector();
19
20 public:
21 virtual ~TermPositionVector();
22 LUCENE_INTERFACE(TermPositionVector);
23
24 public:
27 virtual Collection<int32_t> getTermPositions(int32_t index);
28
33 virtual Collection<TermVectorOffsetInfoPtr> getOffsets(int32_t index);
34 };
35
36 }
37
38 #endif
LUCENE_INTERFACE
#define LUCENE_INTERFACE(Name)
Definition: LuceneObject.h:19
Lucene::TermFreqVector
Provides access to stored term vector of a document field. The vector consists of the name of the fie...
Definition: TermFreqVector.h:18
TermFreqVector.h
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::Collection< int32_t >
Lucene::TermPositionVector
Extends TermFreqVector to provide additional information about positions in which each of the terms i...
Definition: TermPositionVector.h:16

clucene.sourceforge.net