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
12 namespace Lucene {
13
18 class LPPAPI TermFreqVector {
19 protected:
20 TermFreqVector();
21
22 public:
23 virtual ~TermFreqVector();
24 LUCENE_INTERFACE(TermFreqVector);
25
26 public:
29 virtual String getField();
30
32 virtual int32_t size();
33
35 virtual Collection<String> getTerms();
36
40 virtual Collection<int32_t> getTermFrequencies();
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
LuceneObject.h
LUCENE_INTERFACE
#define LUCENE_INTERFACE(Name)
Definition LuceneObject.h:19
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
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
Lucene::TermFreqVector::TermFreqVector
TermFreqVector()
Lucene::TermFreqVector::getTermFrequencies
virtual Collection< int32_t > getTermFrequencies()
Array of term frequencies. Locations of the array correspond one to one to the terms in the array obt...
Lucene::TermFreqVector::indexOf
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...
Lucene::TermFreqVector::getField
virtual String getField()
The Fieldable name.
Lucene::TermFreqVector::indexesOf
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...
Lucene::TermFreqVector::size
virtual int32_t size()
Lucene::TermFreqVector::~TermFreqVector
virtual ~TermFreqVector()
Lucene::TermFreqVector::getTerms
virtual Collection< String > getTerms()
Lucene
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net