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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PayloadSpanUtil.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 PAYLOADSPANUTIL_H
8 #define PAYLOADSPANUTIL_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
16 class LPPAPI PayloadSpanUtil : public LuceneObject
17 {
18 public:
20 PayloadSpanUtil(IndexReaderPtr reader);
21
22 virtual ~PayloadSpanUtil();
23
24 LUCENE_CLASS(PayloadSpanUtil);
25
26 protected:
27 IndexReaderPtr reader;
28
29 public:
32 Collection<ByteArray> getPayloadsForQuery(QueryPtr query);
33
34 protected:
35 void queryToSpanQuery(QueryPtr query, Collection<ByteArray> payloads);
36 void getPayloads(Collection<ByteArray> payloads, SpanQueryPtr query);
37 };
38 }
39
40 #endif

clucene.sourceforge.net