Remove unused variable in QueryContainer

This commit is contained in:
krisds 2019-03-21 10:48:31 +01:00 committed by Luca Cavanna
parent 293297ae3d
commit 05ed1cfb33
1 changed files with 0 additions and 4 deletions

View File

@ -287,16 +287,12 @@ public class QueryContainer {
}
private Tuple<QueryContainer, FieldExtraction> nestedHitFieldRef(FieldAttribute attr) {
// Find the nested query for this field. If there isn't one then create it
List<FieldExtraction> nestedRefs = new ArrayList<>();
String name = aliasName(attr);
Query q = rewriteToContainNestedField(query, attr.source(),
attr.nestedParent().name(), name, attr.field().getDataType().format(), attr.field().isAggregatable());
SearchHitFieldRef nestedFieldRef = new SearchHitFieldRef(name, attr.field().getDataType(),
attr.field().isAggregatable(), attr.parent().name());
nestedRefs.add(nestedFieldRef);
return new Tuple<>(new QueryContainer(q, aggs, fields, aliases, pseudoFunctions, scalarFunctions, sort, limit, trackHits),
nestedFieldRef);