Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WildcardQuery.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 WILDCARDQUERY_H
8 #define WILDCARDQUERY_H
9 
10 #include "MultiTermQuery.h"
11 
12 namespace Lucene {
13 
21 class LPPAPI WildcardQuery : public MultiTermQuery {
22 public:
23  WildcardQuery(const TermPtr& term);
24  virtual ~WildcardQuery();
25 
27 
28 protected:
32 
33 public:
35 
37  TermPtr getTerm();
38 
39  virtual QueryPtr rewrite(const IndexReaderPtr& reader);
40 
42  virtual String toString(const String& field);
43 
44  virtual LuceneObjectPtr clone(const LuceneObjectPtr& other = LuceneObjectPtr());
45  virtual int32_t hashCode();
46  virtual bool equals(const LuceneObjectPtr& other);
47 
48 protected:
49  virtual FilteredTermEnumPtr getEnum(const IndexReaderPtr& reader);
50 };
51 
52 }
53 
54 #endif

clucene.sourceforge.net