public AllScorer(Similarity similarity, IndexReader reader, FunctionWeight w, IState state) : base(similarity) { this.weight = w; this.qWeight = w.Value; this.reader = reader; this.maxDoc = reader.MaxDoc; this.hasDeletions = reader.HasDeletions; vals = ((FunctionQuery)w.Query).func.GetValues(reader, state); }
public AllScorer(Similarity similarity, IndexReader reader, FunctionWeight w) : base(similarity) { this.weight = w; this.qWeight = w.GetValue(); this.reader = reader; this.maxDoc = reader.MaxDoc(); this.hasDeletions = reader.HasDeletions(); vals = ((FunctionQuery)w.GetQuery()).func.GetValues(reader); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public AllScorer(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs, FunctionWeight w, float qWeight) throws java.io.IOException public AllScorer(FunctionQuery outerInstance, AtomicReaderContext context, Bits acceptDocs, FunctionWeight w, float qWeight) : base(w) { this.outerInstance = outerInstance; this.weight = w; this.qWeight = qWeight; this.reader = context.Reader; this.maxDoc = reader.MaxDoc; this.acceptDocs = acceptDocs; vals = outerInstance.func.GetValues(weight.context, context); }
public AllScorer(Similarity similarity, IndexReader reader, FunctionWeight w) : base(similarity) { this.weight = w; this.qWeight = w.Value; this.reader = reader; this.maxDoc = reader.MaxDoc; this.hasDeletions = reader.HasDeletions; vals = ((FunctionQuery)w.Query).func.GetValues(reader); }