I'm trying to fetch data between given timeStamp and in the given list of stores from Elastic Index, but when I'm doing it by looping through the listOfStores it's working fine and I'm getting the data for that particular store
listOfStores.forEach( i -> {
List<InStoreDemographicIndex> inStoreDemographicIndices =
inStoreSearchRepo.findAllByTimeStampBetweenAndStore(startTime, endTime, i));
})
But at the same time when I'm trying,
List<InStoreDemographicIndex> inStoreDemographicIndices = inStoreSearchRepo
.findAllByTimeStampBetweenAndStoreIn(startTime, endTime, listOfStores);
and passing only one Store at a time, this query is not working and in result I'm getting data for all the stores, even though I'm passing only one Store.
