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


Loading...
Searching...
No Matches
PayloadTermQuery.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 PAYLOADTERMQUERY_H
8#define PAYLOADTERMQUERY_H
9
10#include "SpanTermQuery.h"
11
12namespace Lucene {
13
21class LPPAPI PayloadTermQuery : public SpanTermQuery {
22public:
25
27
28protected:
31
32public:
33 virtual WeightPtr createWeight(const SearcherPtr& searcher);
34
36 virtual bool equals(const LuceneObjectPtr& other);
37 virtual int32_t hashCode();
38
39 friend class PayloadTermWeight;
41};
42
43}
44
45#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
virtual LuceneObjectPtr clone(const LuceneObjectPtr &other=LuceneObjectPtr())
Returns a clone of this query.
PayloadFunctionPtr function
Definition PayloadTermQuery.h:29
friend class PayloadTermWeight
Definition PayloadTermQuery.h:39
friend class PayloadTermSpanScorer
Definition PayloadTermQuery.h:40
virtual int32_t hashCode()
Return hash code for this object.
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
virtual WeightPtr createWeight(const SearcherPtr &searcher)
Constructs an appropriate Weight implementation for this query. Only implemented by primitive queries...
bool includeSpanScore
Definition PayloadTermQuery.h:30
PayloadTermQuery(const TermPtr &term, const PayloadFunctionPtr &function, bool includeSpanScore=true)
SpanTermQuery(const TermPtr &term)
Construct a SpanTermQuery matching the named term's spans.
TermPtr term
Definition SpanTermQuery.h:24
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Weight > WeightPtr
Definition LuceneTypes.h:480
boost::shared_ptr< PayloadFunction > PayloadFunctionPtr
Definition LuceneTypes.h:402
boost::shared_ptr< Searcher > SearcherPtr
Definition LuceneTypes.h:434
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233

clucene.sourceforge.net