Пример #1
0
 MatchNoneScorer(IndexReader reader, Similarity similarity, Weight w, byte[] norms)
     throws IOException {
   super(similarity, w);
   this.termDocs = reader.termDocs(null);
   score = w.getValue();
   this.norms = norms;
 }
Пример #2
0
 public PayloadTermSpanScorer(
     TermSpans spans, Weight weight, Similarity similarity, byte[] norms) throws IOException {
   super(spans, weight, similarity, norms);
   //                        super (spans, weight, similarity, null);
   positions = spans.getPositions();
   value = weight.getValue();
 }
 protected SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms)
     throws IOException {
   super(similarity, weight);
   this.spans = spans;
   this.norms = norms;
   this.value = weight.getValue();
   if (this.spans.next()) {
     doc = -1;
   } else {
     doc = NO_MORE_DOCS;
     more = false;
   }
 }