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


Loading...
Searching...
No Matches
TermFreqVector.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 TERMFREQVECTOR_H
8#define TERMFREQVECTOR_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
18class LPPAPI TermFreqVector {
19protected:
21
22public:
23 virtual ~TermFreqVector();
25
26public:
29 virtual String getField();
30
32 virtual int32_t size();
33
36
41
44 virtual int32_t indexOf(const String& term);
45
52 virtual Collection<int32_t> indexesOf(Collection<String> terms, int32_t start, int32_t length);
53};
54
55}
56
57#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
virtual Collection< int32_t > getTermFrequencies()
Array of term frequencies. Locations of the array correspond one to one to the terms in the array obt...
virtual int32_t indexOf(const String &term)
Return an index in the term numbers array returned from getTerms at which the term with the specified...
virtual String getField()
The Fieldable name.
virtual 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...
virtual int32_t size()
virtual Collection< String > getTerms()
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net