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


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

clucene.sourceforge.net