Not able to see the reply

Continuing the discussion from Elaticsearch multiMatchQuery with wildcard:
I am looking for similar search for all the fields.
I am not able see the reply.
If there is any solution please update

Object obj = new Model(); String queryString = "data"; //AbstractAggregationBuilder aggregationBuilder; QueryBuilder queryBuilder = QueryBuilders.queryStringQuery(queryString + "*"); Query searchQuery = new NativeSearchQueryBuilder().withFilter(queryBuilder) .withPageable(PageRequest.of(0, 5)).build(); SearchHits<? extends Object> searchSuggestions = elasticsearchTemplate.search(searchQuery, obj.getClass()); System.out.println(searchSuggestions.getTotalHits());