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