use of org.sonar.server.es.textsearch.ComponentTextSearchQueryFactory.ComponentTextSearchQuery in project sonarqube by SonarSource.
the class ComponentIndex method createQuery.
private QueryBuilder createQuery(ComponentIndexQuery query, ComponentTextSearchFeature... features) {
BoolQueryBuilder esQuery = boolQuery();
esQuery.filter(authorizationTypeSupport.createQueryFilter());
ComponentTextSearchQuery componentTextSearchQuery = ComponentTextSearchQuery.builder().setQueryText(query.getQuery()).setFieldKey(FIELD_KEY).setFieldName(FIELD_NAME).build();
return esQuery.must(ComponentTextSearchQueryFactory.createQuery(componentTextSearchQuery, features));
}
Aggregations