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
PrefixQuery.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 PREFIXQUERY_H
8
#define PREFIXQUERY_H
9
10
#include "
MultiTermQuery.h
"
11
12
namespace
Lucene
13
{
18
class
LPPAPI
PrefixQuery
:
public
MultiTermQuery
19
{
20
public
:
22
PrefixQuery
(
TermPtr
prefix);
23
24
virtual
~
PrefixQuery
();
25
26
LUCENE_CLASS
(
PrefixQuery
);
27
28
protected
:
29
TermPtr
prefix;
30
31
public
:
32
using
MultiTermQuery::toString
;
33
35
TermPtr
getPrefix();
36
38
virtual
String toString(
const
String& field);
39
40
virtual
LuceneObjectPtr
clone(
LuceneObjectPtr
other =
LuceneObjectPtr
());
41
virtual
int32_t hashCode();
42
virtual
bool
equals(
LuceneObjectPtr
other);
43
44
protected
:
45
virtual
FilteredTermEnumPtr
getEnum(
IndexReaderPtr
reader);
46
};
47
}
48
49
#endif
clucene.sourceforge.net