My full-text search is not working properly and also it's taking too much time to execute elasticsearch query I am using following code to get the data from elasticsearch using java.
PageRequest pageRequest = (PageRequest)pageable;
SearchRequest searchRequest = new SearchRequest("jankalyan_new");
SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
QueryStringQueryBuilder queryStringQueryBuilder =
where pageable and query is the parameter coming from the front end and Jankalyan_new is my index name.
If I type Bangalore in the search text field it is giving other address data on the top and after that Bangalore address data is coming which is wrong. could you please suggest me is I am going correctly? if correct then why its giving wrong result and taking too much time. And If I am going wrong then could you please suggest me a better solution on the same?