Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
QueryTermVector.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2011 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 QUERYTERMVECTOR_H
8
#define QUERYTERMVECTOR_H
9
10
#include "
TermFreqVector.h
"
11
12
namespace
Lucene
13
{
14
class
LPPAPI
QueryTermVector
:
public
TermFreqVector
,
public
LuceneObject
15
{
16
public
:
18
QueryTermVector
(
Collection<String>
queryTerms);
19
QueryTermVector
(
const
String& queryString,
AnalyzerPtr
analyzer);
20
21
virtual
~
QueryTermVector
();
22
23
LUCENE_CLASS
(
QueryTermVector
);
24
25
protected
:
26
Collection<String>
terms
;
27
Collection<int32_t>
termFreqs
;
28
29
public
:
30
virtual
String toString();
31
32
int32_t size();
33
Collection<String>
getTerms();
34
Collection<int32_t>
getTermFrequencies();
35
int32_t indexOf(
const
String& term);
36
Collection<int32_t>
indexesOf(
Collection<String>
terms, int32_t start, int32_t length);
37
38
protected
:
39
void
processTerms(
Collection<String>
queryTerms);
40
};
41
}
42
43
#endif
clucene.sourceforge.net