Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
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::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::Explanation
Explanation(double value=0, const String &description=EmptyString)
Lucene::Explanation::description
String description
Definition
Explanation.h:24
Lucene::Explanation::value
double value
Definition
Explanation.h:23
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net