Package org.apache.lucene.queries.function.valuesource

Examples of org.apache.lucene.queries.function.valuesource.SumTotalTermFreqValueSource


        new float[] { 3f, 3f });
  }
 
  public void testSumTotalTermFreq() throws Exception {
    if (Codec.getDefault().getName().equals("Lucene3x")) {
      assertHits(new FunctionQuery(new SumTotalTermFreqValueSource("text")),
          new float[] { -1f, -1f });
    } else {
      assertHits(new FunctionQuery(new SumTotalTermFreqValueSource("text")),
          new float[] { 8f, 8f });
    }
  }
View Full Code Here


        new float[] { 3f, 3f });
  }
 
  public void testSumTotalTermFreq() throws Exception {
    if (Codec.getDefault().getName().equals("Lucene3x")) {
      assertHits(new FunctionQuery(new SumTotalTermFreqValueSource("text")),
          new float[] { -1f, -1f });
    } else {
      assertHits(new FunctionQuery(new SumTotalTermFreqValueSource("text")),
          new float[] { 8f, 8f });
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.queries.function.valuesource.SumTotalTermFreqValueSource

Copyright © 2018 www.massapicom. 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.