private CustomScorer( Similarity similarity, Searcher searcher, IndexReader reader, BoostedQuery.BoostedWeight w, Scorer scorer, ValueSource vs) throws IOException { super(similarity, w); this.weight = w; this.qWeight = w.getValue(); this.scorer = scorer; this.reader = reader; this.searcher = searcher; // for explain this.vals = vs.getValues(weight.context, reader); }