Package org.apache.lucene.search

Examples of org.apache.lucene.search.Weight.normalize()


        return originalWeight.getValueForNormalization() * TermsIncludingScoreQuery.this.getBoost() * TermsIncludingScoreQuery.this.getBoost();
      }

      @Override
      public void normalize(float norm, float topLevelBoost) {
        originalWeight.normalize(norm, topLevelBoost * TermsIncludingScoreQuery.this.getBoost());
      }

      @Override
      public Scorer scorer(AtomicReaderContext context, Bits acceptDocs) throws IOException {
        Terms terms = context.reader().terms(field);
View Full Code Here


        return weight.sumOfSquaredWeights() * getBoost() * getBoost();
      }

      @Override
      public void normalize(final float v) {
        weight.normalize(v * getBoost()); // incorporate boost
        this.value = weight.getValue();
      }

      @Override
      public Explanation explain(final IndexReader reader, final int i)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.