Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
TopFieldDocs.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 TOPFIELDDOCS_H
8
#define TOPFIELDDOCS_H
9
10
#include "
TopDocs.h
"
11
12
namespace
Lucene
{
13
15
class
LPPAPI
TopFieldDocs
:
public
TopDocs
{
16
public
:
21
TopFieldDocs
(int32_t
totalHits
,
Collection<ScoreDocPtr>
scoreDocs
,
Collection<SortFieldPtr>
fields
,
double
maxScore
);
22
23
virtual
~TopFieldDocs
();
24
25
LUCENE_CLASS
(
TopFieldDocs
);
26
27
public
:
29
Collection<SortFieldPtr>
fields
;
30
};
31
32
}
33
34
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
TopDocs.h
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::TopDocs::TopDocs
TopDocs(int32_t totalHits, Collection< ScoreDocPtr > scoreDocs)
Constructs a TopDocs with a default maxScore = double.NaN.
Lucene::TopDocs::totalHits
int32_t totalHits
The total number of hits for the query.
Definition
TopDocs.h:30
Lucene::TopDocs::scoreDocs
Collection< ScoreDocPtr > scoreDocs
The top hits for the query.
Definition
TopDocs.h:33
Lucene::TopDocs::maxScore
double maxScore
Stores the maximum score value encountered, needed for normalizing.
Definition
TopDocs.h:36
Lucene::TopFieldDocs::~TopFieldDocs
virtual ~TopFieldDocs()
Lucene::TopFieldDocs::TopFieldDocs
TopFieldDocs(int32_t totalHits, Collection< ScoreDocPtr > scoreDocs, Collection< SortFieldPtr > fields, double maxScore)
Lucene::TopFieldDocs::fields
Collection< SortFieldPtr > fields
The fields which were used to sort results by.
Definition
TopFieldDocs.h:29
Lucene
Definition
AbstractAllTermDocs.h:12
clucene.sourceforge.net