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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermQuery.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 TERMQUERY_H
8 #define TERMQUERY_H
9 
10 #include "Query.h"
11 
12 namespace Lucene
13 {
16  class LPPAPI TermQuery : public Query
17  {
18  public:
20  TermQuery(TermPtr term);
21 
22  virtual ~TermQuery();
23 
25 
26  protected:
27  TermPtr term;
28 
29  public:
30  using Query::toString;
31 
33  TermPtr getTerm();
34 
35  virtual WeightPtr createWeight(SearcherPtr searcher);
36  virtual void extractTerms(SetTerm terms);
37 
39  virtual String toString(const String& field);
40 
41  virtual bool equals(LuceneObjectPtr other);
42  virtual int32_t hashCode();
43  virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
44 
45  friend class TermWeight;
46  };
47 }
48 
49 #endif

clucene.sourceforge.net