I am using the below query builder from my java class
SearchSourceBuilder()
.query(BoolQueryBuilder()
.filter(QueryBuilders
.termQuery("cities.id", cityId)))
It's returning me all the properties of the cityId it matches. But I just need the name of the city.
How can I accomplish it ?