20 namespace Lucene.Net.Search
29 private int _totalHits;
31 private float _maxScore;
36 get {
return _totalHits; }
37 set { _totalHits = value; }
41 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Performance",
"CA1819:PropertiesShouldNotReturnArrays")]
44 get {
return _scoreDocs; }
45 set { _scoreDocs = value; }
54 get {
return _maxScore; }
55 set { _maxScore = value; }
59 internal TopDocs(
int totalHits,
ScoreDoc[] scoreDocs):this(totalHits, scoreDocs, float.NaN)
66 this.TotalHits = totalHits;
67 this.ScoreDocs = scoreDocs;
68 this.MaxScore = maxScore;