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
WildcardQuery.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 WILDCARDQUERY_H
8 #define WILDCARDQUERY_H
9
10 #include "MultiTermQuery.h"
11
12 namespace Lucene
13 {
21 class LPPAPI WildcardQuery : public MultiTermQuery
22 {
23 public:
24 WildcardQuery(TermPtr term);
25 virtual ~WildcardQuery();
26
27 LUCENE_CLASS(WildcardQuery);
28
29 protected:
30 bool termContainsWildcard;
31 bool termIsPrefix;
32 TermPtr term;
33
34 public:
35 using MultiTermQuery::toString;
36
38 TermPtr getTerm();
39
40 virtual QueryPtr rewrite(IndexReaderPtr reader);
41
43 virtual String toString(const String& field);
44
45 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
46 virtual int32_t hashCode();
47 virtual bool equals(LuceneObjectPtr other);
48
49 protected:
50 virtual FilteredTermEnumPtr getEnum(IndexReaderPtr reader);
51 };
52 }
53
54 #endif

clucene.sourceforge.net