#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
Represents hits returned by Searcher#search(QueryPtr, FilterPtr, int32_t) and Searcher#search(QueryPt...
Definition TopDocs.h:16
TopDocs(int32_t totalHits, Collection< ScoreDocPtr > scoreDocs)
Constructs a TopDocs with a default maxScore = double.NaN.
void setMaxScore(double maxScore)
Sets the maximum score value encountered.
double getMaxScore()
Returns the maximum score value encountered. Note that in case scores are not tracked,...
int32_t totalHits
The total number of hits for the query.
Definition TopDocs.h:30
Collection< ScoreDocPtr > scoreDocs
The top hits for the query.
Definition TopDocs.h:33
double maxScore
Stores the maximum score value encountered, needed for normalizing.
Definition TopDocs.h:36
TopDocs(int32_t totalHits, Collection< ScoreDocPtr > scoreDocs, double maxScore)
Constructs a TopDocs.
Definition AbstractAllTermDocs.h:12