Examples of ShortFieldSource


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

    assertHits(new FunctionQuery(new ScaleFloatFunction(new IntFieldSource("int"), 0, 1)),
       new float[] { 0.0f, 1.0f });
  }
 
  public void testShort() throws Exception {
    assertHits(new FunctionQuery(new ShortFieldSource("short")),
        new float[] { 945f, 123f });
  }
View Full Code Here

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

    assertHits(new FunctionQuery(new ScaleFloatFunction(new IntFieldSource("int"), 0, 1)),
       new float[] { 0.0f, 1.0f });
  }
 
  public void testShort() throws Exception {
    assertHits(new FunctionQuery(new ShortFieldSource("short")),
        new float[] { 945f, 123f });
  }
View Full Code Here

Examples of org.apache.solr.search.function.ShortFieldSource

  }

  @Override
  public ValueSource getValueSource(SchemaField field, QParser qparser) {
    field.checkFieldCacheSource(qparser);
    return new ShortFieldSource(field.name);
  }
View Full Code Here

Examples of org.apache.solr.search.function.ShortFieldSource

    return new SortField(field.name, SortField.SHORT, reverse);
  }

  public ValueSource getValueSource(SchemaField field) {

    return new ShortFieldSource(field.name);
  }
View Full Code Here

Examples of org.apache.solr.search.function.ShortFieldSource

    return new SortField(field.name, SortField.SHORT, reverse);
  }

  public ValueSource getValueSource(SchemaField field) {

    return new ShortFieldSource(field.name);
  }
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.