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

clucene.sourceforge.net