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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SpanTermQuery.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 SPANTERMQUERY_H
8 #define SPANTERMQUERY_H
9 
10 #include "SpanQuery.h"
11 
12 namespace Lucene
13 {
15  class LPPAPI SpanTermQuery : public SpanQuery
16  {
17  public:
19  SpanTermQuery(TermPtr term);
20  virtual ~SpanTermQuery();
21 
23 
24  protected:
25  TermPtr term;
26 
27  public:
28  using SpanQuery::toString;
29 
31  TermPtr getTerm();
32 
33  virtual String getField();
34  virtual void extractTerms(SetTerm terms);
35  virtual String toString(const String& field);
36  virtual int32_t hashCode();
37  virtual bool equals(LuceneObjectPtr other);
38  virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
39  virtual SpansPtr getSpans(IndexReaderPtr reader);
40  };
41 }
42 
43 #endif

clucene.sourceforge.net