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
ConstantScoreQuery.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 CONSTANTSCOREQUERY_H
8
#define CONSTANTSCOREQUERY_H
9
10
#include "
Query.h
"
11
#include "
Weight.h
"
12
#include "
Scorer.h
"
13
14
namespace
Lucene
15
{
18
class
LPPAPI
ConstantScoreQuery
:
public
Query
19
{
20
public
:
21
ConstantScoreQuery
(
FilterPtr
filter);
22
virtual
~
ConstantScoreQuery
();
23
24
LUCENE_CLASS
(
ConstantScoreQuery
);
25
26
protected
:
27
FilterPtr
filter;
28
29
public
:
30
using
Query::toString
;
31
33
FilterPtr
getFilter();
34
35
virtual
QueryPtr
rewrite(
IndexReaderPtr
reader);
36
virtual
void
extractTerms(SetTerm terms);
37
38
virtual
WeightPtr
createWeight(
SearcherPtr
searcher);
39
41
virtual
String toString(
const
String& field);
42
43
virtual
bool
equals(
LuceneObjectPtr
other);
44
virtual
int32_t hashCode();
45
virtual
LuceneObjectPtr
clone(
LuceneObjectPtr
other =
LuceneObjectPtr
());
46
47
friend
class
ConstantWeight;
48
friend
class
ConstantScorer;
49
};
50
}
51
52
#endif
clucene.sourceforge.net