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
FieldMaskingSpanQuery.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 FIELDMASKINGSPANQUERY_H
8
#define FIELDMASKINGSPANQUERY_H
9
10
#include "
SpanQuery.h
"
11
12
namespace
Lucene
13
{
52
class
LPPAPI
FieldMaskingSpanQuery
:
public
SpanQuery
53
{
54
public
:
55
FieldMaskingSpanQuery
(
SpanQueryPtr
maskedQuery,
const
String& maskedField);
56
virtual
~
FieldMaskingSpanQuery
();
57
58
LUCENE_CLASS
(
FieldMaskingSpanQuery
);
59
60
protected
:
61
SpanQueryPtr
maskedQuery;
62
String
field
;
63
64
public
:
65
using
SpanQuery::toString
;
66
67
virtual
String getField();
68
SpanQueryPtr
getMaskedQuery();
69
virtual
SpansPtr
getSpans(
IndexReaderPtr
reader);
70
virtual
void
extractTerms(SetTerm terms);
71
virtual
WeightPtr
createWeight(
SearcherPtr
searcher);
72
virtual
SimilarityPtr
getSimilarity(
SearcherPtr
searcher);
73
virtual
QueryPtr
rewrite(
IndexReaderPtr
reader);
74
75
virtual
String toString(
const
String& field);
76
virtual
bool
equals(
LuceneObjectPtr
other);
77
virtual
int32_t hashCode();
78
80
virtual
LuceneObjectPtr
clone(
LuceneObjectPtr
other =
LuceneObjectPtr
());
81
};
82
}
83
84
#endif
clucene.sourceforge.net