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


PayloadSpanUtil.h
Go to the documentation of this file.
1 // 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 PAYLOADSPANUTIL_H
8 #define PAYLOADSPANUTIL_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI PayloadSpanUtil : public LuceneObject {
17 public:
20 
21  virtual ~PayloadSpanUtil();
22 
24 
25 protected:
27 
28 public:
32 
33 protected:
34  void queryToSpanQuery(const QueryPtr& query, Collection<ByteArray> payloads);
35  void getPayloads(Collection<ByteArray> payloads, const SpanQueryPtr& query);
36 };
37 
38 }
39 
40 #endif
Lucene::SpanQueryPtr
boost::shared_ptr< SpanQuery > SpanQueryPtr
Definition: LuceneTypes.h:450
Lucene::PayloadSpanUtil::PayloadSpanUtil
PayloadSpanUtil(const IndexReaderPtr &reader)
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::Collection< ByteArray >
Lucene::QueryPtr
boost::shared_ptr< Query > QueryPtr
Definition: LuceneTypes.h:420
Lucene::PayloadSpanUtil
Experimental class to get set of payloads for most standard Lucene queries. Operates like Highlighter...
Definition: PayloadSpanUtil.h:16
Lucene::PayloadSpanUtil::reader
IndexReaderPtr reader
Definition: PayloadSpanUtil.h:23
Lucene::PayloadSpanUtil::getPayloads
void getPayloads(Collection< ByteArray > payloads, const SpanQueryPtr &query)
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::PayloadSpanUtil::~PayloadSpanUtil
virtual ~PayloadSpanUtil()
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition: LuceneTypes.h:157
Lucene::PayloadSpanUtil::getPayloadsForQuery
Collection< ByteArray > getPayloadsForQuery(const QueryPtr &query)
Query should be rewritten for wild/fuzzy support.
Lucene::PayloadSpanUtil::queryToSpanQuery
void queryToSpanQuery(const QueryPtr &query, Collection< ByteArray > payloads)
LuceneObject.h

clucene.sourceforge.net