Example usage for org.apache.lucene.document FeatureField newSaturationQuery

List of usage examples for org.apache.lucene.document FeatureField newSaturationQuery

Introduction

In this page you can find the example usage for org.apache.lucene.document FeatureField newSaturationQuery.

Prototype

private static Query newSaturationQuery(String fieldName, String featureName, float weight, Float pivot) 

Source Link

Usage

From source file:org.elasticsearch.index.query.FeatureQueryBuilderTests.java

License:Apache License

@Override
protected void doAssertLuceneQuery(FeatureQueryBuilder queryBuilder, Query query, SearchContext context)
        throws IOException {
    Class<?> expectedClass = FeatureField.newSaturationQuery("", "", 1, 1).getClass();
    assertThat(query, either(instanceOf(MatchNoDocsQuery.class)).or(instanceOf(expectedClass)));
}