I have a requirement to search in all the fileds data with wild card in java using elaticsearch spring data in spring boot
Here is my code
String queryString = "362*"; final Query searchQuery = new NativeSearchQueryBuilder().withFilter(QueryBuilders.multiMatchQuery(queryString)) .build(); SearchHits<Measurement> meas = elasticsearchTemplate.search(searchQuery, Measurement.class); System.out.println(meas.getTotalHits());
i am not able to get results with wildcard.
can someone help here.