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

clucene.sourceforge.net