Lucene++ - a full-featured, c++ search engine
API Documentation
include
TermFreqVector.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 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
Lucene::Collection< String >
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
Definition:
AbstractAllTermDocs.h:12
LUCENE_INTERFACE
#define LUCENE_INTERFACE(Name)
Definition:
LuceneObject.h:19
LuceneObject.h
clucene.sourceforge.net