/** * Construct a {@link NodeDisjunctionScorer}. * * @param subScorers * A collection of at least two primitives scorers. * @throws IOException */ public NodeDisjunctionScorer(final Weight weight, final List<NodeScorer> scorers) throws IOException { super(weight); nrScorers = scorers.size(); if (nrScorers <= 1) { throw new IllegalArgumentException("There must be at least 2 subScorers"); } this.scorers = scorers; nodeScorerQueue = this.initNodeScorerQueue(); }