While fetching records using IN clause, the below query is returning more than expected values.
List`<Object>` findAllByCameraIdIn(List`<String>` cameraIds);
I have records associated with two cameras in elastic db - [uk05-smoking-shelter-carpark, uk05-stairway-in]
If List cameraIds = ["uk05-smoking-shelter-carpark"], it's giving values associated with camera -> uk05-stairway-in also (both cameras), Any idea/suggestion why this is happing ?
Even if I'm making db call to filter the records, expected result should have been only 7, corresponding to uk05-smoking-shelter-carpark but it is giving me results for uk05-stairway-in also.
My Findings
When I replaced the - with _ for few records i.e., (uk05-smoking-shelter-carpark with uk05_smoking_shelter_carpark) in the cameraId, the query is working fine.
I believe the query starts searching for all the records with the given value but once it enconters - , it's ignoring all the letters after the - . Any suggestion or insights why it is like this?

