List of usage examples for org.apache.lucene.document FeatureField newSaturationQuery
private static Query newSaturationQuery(String fieldName, String featureName, float weight, Float pivot)
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))); }