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


Loading...
Searching...
No Matches
ComplexExplanation.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 COMPLEXEXPLANATION_H
8#define COMPLEXEXPLANATION_H
9
10#include "Explanation.h"
11
12namespace Lucene {
13
16class LPPAPI ComplexExplanation : public Explanation {
17public:
18 ComplexExplanation(bool match = false, double value = 0, const String& description = EmptyString);
20
22
23protected:
24 bool match;
25
26public:
28 bool getMatch();
29
31 void setMatch(bool match);
32
39 virtual bool isMatch();
40
41protected:
42 virtual String getSummary();
43};
44
45}
46
47#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Describes the score computation for document and query, and can distinguish a match independent of a ...
Definition ComplexExplanation.h:16
bool match
Definition ComplexExplanation.h:24
virtual bool isMatch()
Indicates whether or not this Explanation models a good match.
bool getMatch()
The match status of this explanation node.
virtual String getSummary()
A short one line summary which should contain all high level information about this Explanation,...
void setMatch(bool match)
Sets the match status assigned to this explanation node.
ComplexExplanation(bool match=false, double value=0, const String &description=EmptyString)
Describes the score computation for document and query.
Definition Explanation.h:15
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net