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 // 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 
28 
29  protected:
33 
34  public:
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