Search in sources :

Example 6 with PercentileRanksAggregationBuilder

use of org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder in project fess by codelibs.

the class EsAbstractConditionAggregation method regPercentileRanksA.

protected PercentileRanksAggregationBuilder regPercentileRanksA(String name, String field) {
    PercentileRanksAggregationBuilder builder = AggregationBuilders.percentileRanks(name).field(field);
    regA(builder);
    return builder;
}
Also used : PercentileRanksAggregationBuilder(org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder)

Example 7 with PercentileRanksAggregationBuilder

use of org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder in project fess by codelibs.

the class EsAbstractConditionAggregation method regPercentileRanksA.

protected PercentileRanksAggregationBuilder regPercentileRanksA(String name, String field) {
    PercentileRanksAggregationBuilder builder = AggregationBuilders.percentileRanks(name).field(field);
    regA(builder);
    return builder;
}
Also used : PercentileRanksAggregationBuilder(org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder)

Example 8 with PercentileRanksAggregationBuilder

use of org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder in project fess by codelibs.

the class EsAbstractConditionAggregation method regPercentileRanksA.

protected PercentileRanksAggregationBuilder regPercentileRanksA(String name, String field) {
    PercentileRanksAggregationBuilder builder = AggregationBuilders.percentileRanks(name).field(field);
    regA(builder);
    return builder;
}
Also used : PercentileRanksAggregationBuilder(org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder)

Aggregations

PercentileRanksAggregationBuilder (org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanksAggregationBuilder)8 IndexReader (org.apache.lucene.index.IndexReader)4 IndexSearcher (org.apache.lucene.search.IndexSearcher)4 MatchAllDocsQuery (org.apache.lucene.search.MatchAllDocsQuery)4 MappedFieldType (org.elasticsearch.index.mapper.MappedFieldType)4 Percentile (org.elasticsearch.search.aggregations.metrics.percentiles.Percentile)4 PercentileRanks (org.elasticsearch.search.aggregations.metrics.percentiles.PercentileRanks)4 Document (org.apache.lucene.document.Document)2 SortedNumericDocValuesField (org.apache.lucene.document.SortedNumericDocValuesField)2 MultiReader (org.apache.lucene.index.MultiReader)2 RandomIndexWriter (org.apache.lucene.index.RandomIndexWriter)2 Directory (org.apache.lucene.store.Directory)2 Script (org.elasticsearch.script.Script)1