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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PayloadTermQuery.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 PAYLOADTERMQUERY_H
8 #define PAYLOADTERMQUERY_H
9 
10 #include "SpanTermQuery.h"
11 
12 namespace Lucene
13 {
21  class LPPAPI PayloadTermQuery : public SpanTermQuery
22  {
23  public:
24  PayloadTermQuery(TermPtr term, PayloadFunctionPtr function, bool includeSpanScore = true);
25  virtual ~PayloadTermQuery();
26 
28 
29  protected:
30  PayloadFunctionPtr function;
32 
33  public:
34  virtual WeightPtr createWeight(SearcherPtr searcher);
35 
36  virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
37  virtual bool equals(LuceneObjectPtr other);
38  virtual int32_t hashCode();
39 
40  friend class PayloadTermWeight;
41  friend class PayloadTermSpanScorer;
42  };
43 }
44 
45 #endif

clucene.sourceforge.net