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
SpanOrQuery.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 SPANORQUERY_H
8
#define SPANORQUERY_H
9
10
#include "
SpanQuery.h
"
11
12
namespace
Lucene
13
{
15
class
LPPAPI
SpanOrQuery
:
public
SpanQuery
16
{
17
public
:
19
SpanOrQuery
(
Collection<SpanQueryPtr>
clauses);
20
virtual
~
SpanOrQuery
();
21
22
LUCENE_CLASS
(
SpanOrQuery
);
23
24
protected
:
25
Collection<SpanQueryPtr>
clauses;
26
String
field
;
27
28
public
:
29
using
SpanQuery::toString
;
30
32
Collection<SpanQueryPtr>
getClauses();
33
34
virtual
String getField();
35
virtual
void
extractTerms(SetTerm terms);
36
virtual
LuceneObjectPtr
clone(
LuceneObjectPtr
other =
LuceneObjectPtr
());
37
virtual
QueryPtr
rewrite(
IndexReaderPtr
reader);
38
virtual
String toString(
const
String& field);
39
virtual
bool
equals(
LuceneObjectPtr
other);
40
virtual
int32_t hashCode();
41
virtual
SpansPtr
getSpans(
IndexReaderPtr
reader);
42
43
friend
class
OrSpans;
44
};
45
}
46
47
#endif
clucene.sourceforge.net