Examples of TotalTermFreqValueSource


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

  }
 
  public void testTotalTermFreq() throws Exception {
    if (Codec.getDefault().getName().equals("Lucene3x")) {
      assertHits(new FunctionQuery(
          new TotalTermFreqValueSource("bogus", "bogus", "text", new BytesRef("test"))),
          new float[] { -1f, -1f });
    } else {
      assertHits(new FunctionQuery(
          new TotalTermFreqValueSource("bogus", "bogus", "text", new BytesRef("test"))),
          new float[] { 4f, 4f });
    }
  }
View Full Code Here

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

  }
 
  public void testTotalTermFreq() throws Exception {
    if (Codec.getDefault().getName().equals("Lucene3x")) {
      assertHits(new FunctionQuery(
          new TotalTermFreqValueSource("bogus", "bogus", "text", new BytesRef("test"))),
          new float[] { -1f, -1f });
    } else {
      assertHits(new FunctionQuery(
          new TotalTermFreqValueSource("bogus", "bogus", "text", new BytesRef("test"))),
          new float[] { 4f, 4f });
    }
  }
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.