@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 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) throws IOException { SpanWeight includeWeight = include.createWeight(searcher, false); SpanWeight excludeWeight = exclude.createWeight(searcher, false); return new SpanNotWeight(searcher, needsScores ? getTermContexts(includeWeight, excludeWeight) : null, includeWeight, excludeWeight); }
@Override public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { SpanWeight includeWeight = include.createWeight(searcher, false); SpanWeight excludeWeight = exclude.createWeight(searcher, false); return new SpanNotWeight(searcher, needsScores ? getTermContexts(includeWeight, excludeWeight) : null, includeWeight, excludeWeight); }