1 package org.apache.lucene.search; 2 3 18 19 21 public class TopDocs implements java.io.Serializable { 22 25 public int totalHits; 26 27 public ScoreDoc[] scoreDocs; 28 29 private float maxScore; 30 31 32 public float getMaxScore() { 33 return maxScore; 34 } 35 36 37 public void setMaxScore(float maxScore) { 38 this.maxScore=maxScore; 39 } 40 41 42 TopDocs(int totalHits, ScoreDoc[] scoreDocs, float maxScore) { 43 this.totalHits = totalHits; 44 this.scoreDocs = scoreDocs; 45 this.maxScore = maxScore; 46 } 47 } 48 | Popular Tags |