Package org.elasticsearch.search.aggregations.bucket.significant.heuristics

Examples of org.elasticsearch.search.aggregations.bucket.significant.heuristics.SignificanceHeuristic


            // such are impossible to differentiate from non-significant terms at that early stage.
            bucketCountThresholds.setShardSize(2 * BucketUtils.suggestShardSideQueueSize(bucketCountThresholds.getRequiredSize(), context.numberOfShards()));
        }

        bucketCountThresholds.ensureValidity();
        SignificanceHeuristic significanceHeuristic = aggParser.getSignificanceHeuristic();
        if (significanceHeuristic == null) {
            significanceHeuristic = JLHScore.INSTANCE;
        }
        return new SignificantTermsAggregatorFactory(aggregationName, vsParser.config(), bucketCountThresholds, aggParser.getIncludeExclude(), aggParser.getExecutionHint(), aggParser.getFilter(), significanceHeuristic);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.search.aggregations.bucket.significant.heuristics.SignificanceHeuristic

Copyright © 2018 www.massapicom. 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.