@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { return query.createWeight(searcher, needsScores, SpanBoostQuery.this.boost * boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { return maskedQuery.createWeight(searcher, needsScores, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight bigWeight = big.createWeight(searcher, false, boost); SpanWeight littleWeight = little.createWeight(searcher, false, boost); return new SpanContainingWeight(searcher, needsScores ? getTermContexts(bigWeight, littleWeight) : null, bigWeight, littleWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight includeWeight = include.createWeight(searcher, false, boost); SpanWeight excludeWeight = exclude.createWeight(searcher, false, boost); return new SpanNotWeight(searcher, needsScores ? getTermContexts(includeWeight, excludeWeight) : null, includeWeight, excludeWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight bigWeight = big.createWeight(searcher, false, boost); SpanWeight littleWeight = little.createWeight(searcher, false, boost); return new SpanWithinWeight(searcher, needsScores ? getTermContexts(bigWeight, littleWeight) : null, bigWeight, littleWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { List<SpanWeight> subWeights = new ArrayList<>(clauses.size()); for (SpanQuery q : clauses) { subWeights.add(q.createWeight(searcher, false, boost)); } return new SpanOrWeight(searcher, needsScores ? getTermContexts(subWeights) : null, subWeights, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { List<SpanWeight> subWeights = new ArrayList<>(); for (SpanQuery q : clauses) { subWeights.add(q.createWeight(searcher, false, boost)); } return new SpanNearWeight(subWeights, searcher, needsScores ? getTermContexts(subWeights) : null, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight matchWeight = match.createWeight(searcher, false, boost); return new SpanPositionCheckWeight(matchWeight, searcher, needsScores ? getTermContexts(matchWeight) : null, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight bigWeight = big.createWeight(searcher, false, boost); SpanWeight littleWeight = little.createWeight(searcher, false, boost); return new SpanContainingWeight(searcher, needsScores ? getTermContexts(bigWeight, littleWeight) : null, bigWeight, littleWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight bigWeight = big.createWeight(searcher, false, boost); SpanWeight littleWeight = little.createWeight(searcher, false, boost); return new SpanWithinWeight(searcher, needsScores ? getTermContexts(bigWeight, littleWeight) : null, bigWeight, littleWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { SpanWeight bigWeight = big.createWeight(searcher, false); SpanWeight littleWeight = little.createWeight(searcher, false); return new SpanContainingWeight(searcher, needsScores ? getTermContexts(bigWeight, littleWeight) : null, bigWeight, littleWeight); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { return new SpanOffsetWeight(searcher, in.createWeight(searcher, needsScores)); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight innerWeight = wrappedQuery.createWeight(searcher, needsScores, boost); if (!needsScores) return innerWeight; return new PayloadSpanWeight(searcher, innerWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { SpanWeight innerWeight = wrappedQuery.createWeight(searcher, needsScores); if (!needsScores) return innerWeight; return new PayloadSpanWeight(searcher, innerWeight); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { List<SpanWeight> subWeights = new ArrayList<>(); for (SpanQuery q : clauses) { subWeights.add(q.createWeight(searcher, false)); } return new SpanNearWeight(subWeights, searcher, needsScores ? getTermContexts(subWeights) : null); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { List<SpanWeight> subWeights = new ArrayList<>(); for (SpanQuery q : clauses) { subWeights.add(q.createWeight(searcher, false, boost)); } return new SpanNearWeight(subWeights, searcher, needsScores ? getTermContexts(subWeights) : null, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { List<SpanWeight> subWeights = new ArrayList<>(); for (SpanQuery q : clauses) { subWeights.add(q.createWeight(searcher, false)); } return new PayloadNearSpanWeight(subWeights, searcher, needsScores ? getTermContexts(subWeights) : null); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight matchWeight = match.createWeight(searcher, false, boost); return new SpanPayloadCheckWeight(searcher, needsScores ? getTermContexts(matchWeight) : null, matchWeight, boost); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { SpanWeight matchWeight = match.createWeight(searcher, false); return new SpanPositionCheckWeight(matchWeight, searcher, needsScores ? getTermContexts(matchWeight) : null); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { SpanWeight matchWeight = match.createWeight(searcher, false, boost); return new SpanPositionCheckWeight(matchWeight, searcher, needsScores ? getTermContexts(matchWeight) : null, boost); }