use of org.sonar.server.es.StickyFacetBuilder in project sonarqube by SonarSource.
the class ProjectMeasuresIndex method addFacets.
private static void addFacets(SearchRequestBuilder esSearch, SearchOptions options, Map<String, QueryBuilder> filters, ProjectMeasuresQuery query) {
StickyFacetBuilder facetBuilder = new StickyFacetBuilder(matchAllQuery(), filters);
options.getFacets().stream().filter(FACET_FACTORIES::containsKey).map(FACET_FACTORIES::get).forEach(factory -> factory.addFacet(esSearch, query, facetBuilder));
}
Aggregations