@Override public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { if (needsScores == false) { return new TermQuery(term).createWeight(searcher, needsScores, boost);
public BackwardsWeight(IndexSearcher searcher) throws IOException { super(BackwardsTermQuery.this); backwardsWeight = backwardsQuery.createWeight(searcher, true, 1.0f); forwardsWeight = forwardsQuery.createWeight(searcher, true, 1.0f); }
@Override public Weight createWeight(Searcher searcher) throws IOException { return new JackrabbitTermWeight(searcher, super.createWeight(searcher)); }
public Weight createWeight(Searcher searcher) throws IOException { // use a FilterSearcher to prevent per segment searches // done by lucene. we handle that on our own // see instanceof check in lucene TermWeight constructor return new JackrabbitTermWeight(searcher, super.createWeight(new FilterSearcher(searcher))); }
public Weight createWeight(Searcher searcher) throws IOException { // use a FilterSearcher to prevent per segment searches // done by lucene. we handle that on our own // see instanceof check in lucene TermWeight constructor return new JackrabbitTermWeight(searcher, super.createWeight(new FilterSearcher(searcher))); }
@Override public Weight createWeight(final IndexSearcher searcher, final boolean needsScores, final float boost) throws IOException { return super.createWeight(searcher, needsScores, boost * fieldBoost.getBoost(getTerm().field(), searcher.getIndexReader())); }
currentContextScorer = newQuery.createWeight(searcher).scorer(reader, scoreDocsInOrder, topScorer);
@Override public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { if (needsScores == false) { return new TermQuery(term).createWeight(searcher, needsScores, boost);
@Override public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException { if (needsScores == false) { return new TermQuery(term).createWeight(searcher, needsScores, boost);
@Override public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { if (needsScores == false) { return new TermQuery(term).createWeight(searcher, needsScores);
@Override public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { if (needsScores == false) { return new TermQuery(term).createWeight(searcher, needsScores);
@Override public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException { if (needsScores == false) { return new TermQuery(term).createWeight(searcher, needsScores);