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
include
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
12
namespace
Lucene {
13
16
class
LPPAPI
PayloadSpanUtil
:
public
LuceneObject
{
17
public
:
19
PayloadSpanUtil
(
const
IndexReaderPtr
& reader);
20
21
virtual
~
PayloadSpanUtil
();
22
23
LUCENE_CLASS
(
PayloadSpanUtil
);
24
25
protected
:
26
IndexReaderPtr
reader;
27
28
public
:
31
Collection<ByteArray>
getPayloadsForQuery(
const
QueryPtr
& query);
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
clucene.sourceforge.net