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
SpanNearQuery.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 SPANNEARQUERY_H
8
#define SPANNEARQUERY_H
9
10
#include "
SpanQuery.h
"
11
12
namespace
Lucene {
13
16
class
LPPAPI
SpanNearQuery
:
public
SpanQuery
{
17
public
:
21
SpanNearQuery
(
Collection<SpanQueryPtr>
clauses, int32_t slop,
bool
inOrder,
bool
collectPayloads =
true
);
22
virtual
~
SpanNearQuery
();
23
24
LUCENE_CLASS
(
SpanNearQuery
);
25
26
protected
:
27
Collection<SpanQueryPtr>
clauses;
28
int32_t
slop
;
29
bool
inOrder
;
30
31
String
field
;
32
bool
collectPayloads
;
33
34
public
:
35
using
SpanQuery::toString
;
36
38
Collection<SpanQueryPtr>
getClauses();
39
41
int32_t getSlop();
42
44
bool
isInOrder();
45
46
virtual
String getField();
47
virtual
void
extractTerms(SetTerm terms);
48
virtual
String toString(
const
String& field);
49
virtual
SpansPtr
getSpans(
const
IndexReaderPtr
& reader);
50
virtual
QueryPtr
rewrite(
const
IndexReaderPtr
& reader);
51
virtual
LuceneObjectPtr
clone(
const
LuceneObjectPtr
& other =
LuceneObjectPtr
());
52
virtual
bool
equals(
const
LuceneObjectPtr
& other);
53
virtual
int32_t hashCode();
54
};
55
56
}
57
58
#endif
clucene.sourceforge.net