1 package org.apache.lucene.search; 2 3 18 19 import java.io.IOException ; 20 21 import org.apache.lucene.index.IndexReader; 22 23 43 public interface Weight extends java.io.Serializable { 44 45 Query getQuery(); 46 47 48 float getValue(); 49 50 51 float sumOfSquaredWeights() throws IOException ; 52 53 54 void normalize(float norm); 55 56 57 Scorer scorer(IndexReader reader) throws IOException ; 58 59 60 Explanation explain(IndexReader reader, int doc) throws IOException ; 61 } 62 | Popular Tags |