Lucene++ - a full-featured, c++ search engine
API Documentation

FieldScoreQuery.h
Go to the documentation of this file.
1 // 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 FIELDSCOREQUERY_H
8 #define FIELDSCOREQUERY_H
9
10 #include "ValueSourceQuery.h"
11
12 namespace Lucene {
13
43 class LPPAPI FieldScoreQuery : public ValueSourceQuery {
44 public:
46 enum Type {
48 BYTE,
49
51 INT,
52
54 DOUBLE
55 };
56
61 FieldScoreQuery(const String& field, Type type);
62
63 virtual ~FieldScoreQuery();
64
65 LUCENE_CLASS(FieldScoreQuery);
66
67 public:
69 static ValueSourcePtr getValueSource(const String& field, Type type);
70 };
71
72 }
73
74 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
ValueSourceQuery.h
Lucene::FieldScoreQuery
A query that scores each document as the value of the numeric input field.
Definition: FieldScoreQuery.h:43
Lucene::FieldScoreQuery::~FieldScoreQuery
virtual ~FieldScoreQuery()
Lucene::FieldScoreQuery::Type
Type
Type of score field, indicating how field values are interpreted/parsed.
Definition: FieldScoreQuery.h:46
Lucene::FieldScoreQuery::BYTE
@ BYTE
Field values are interpreted as numeric byte values.
Definition: FieldScoreQuery.h:48
Lucene::FieldScoreQuery::INT
@ INT
Field values are interpreted as numeric integer values.
Definition: FieldScoreQuery.h:51
Lucene::FieldScoreQuery::FieldScoreQuery
FieldScoreQuery(const String &field, Type type)
Create a FieldScoreQuery - a query that scores each document as the value of the numeric input field....
Lucene::FieldScoreQuery::getValueSource
static ValueSourcePtr getValueSource(const String &field, Type type)
Create the appropriate (cached) field value source.
Lucene::ValueSourceQuery
A Query that sets the scores of document to the values obtained from a ValueSource.
Definition: ValueSourceQuery.h:22
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::ValueSourcePtr
boost::shared_ptr< ValueSource > ValueSourcePtr
Definition: LuceneTypes.h:476

clucene.sourceforge.net