I was using the below query to find out student's details from an elastic search index ( ES Version 2.6 ). Multiple student IDs (max 50 Nos.) were passed to this query so that it brings out the details
{ "size": 5000, "_source": false, "fields": ["student_name","age", "mobile","pincode","library_id"], "query": { "filtered": { "query": { "bool": { "must": [ { "terms": {"student_id": ['124,563,222']} } ] } } } } }
This is not working in ES 5.6 . Could someone help me understand how to translate this to version 5.6 ? Any useful links also would be fine. Thanks