Examples of queryNorm()


Examples of org.apache.lucene.search.Similarity.queryNorm()

        return new DefaultSimilarity() {

          @Override
          public float queryNorm(final float sumOfSquaredWeights) {
            return base.queryNorm(sumOfSquaredWeights);
          }


          @Override
          public float coord(final int overlap, final int max) {
View Full Code Here

Examples of org.apache.lucene.search.similarities.Similarity.queryNorm()

        return base.coord(overlap, maxOverlap);
      }

      @Override
      public float queryNorm(float sumOfSquaredWeights) {
        return base.queryNorm(sumOfSquaredWeights);
      }
    });
   
    // in this case, we searched on field "foo". first document should have 2x the score.
    TermQuery tq = new TermQuery(new Term("foo", "quick"));
View Full Code Here

Examples of org.apache.lucene.search.similarities.Similarity.queryNorm()

        return base.coord(overlap, maxOverlap);
      }

      @Override
      public float queryNorm(float sumOfSquaredWeights) {
        return base.queryNorm(sumOfSquaredWeights);
      }
    });
   
    // in this case, we searched on field "foo". first document should have 2x the score.
    TermQuery tq = new TermQuery(new Term("foo", "quick"));
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.