Hi everyone, i want o search records with specific fields in elastic search like records below:
"person": [
{
"id": 1
"name": "jame"
},
{
"id": 2,
"name": "EVP"
},
{
"id": 3,
"name": "GP"
},
{
"id": 3,
"name": "PLR"
}
]
I want to search id (2 and 3) in the person, i have tried query_string but it's not working, my code is as below:
{
"query" : {
"query_string" : {
"default_field" : "person.id",
"query" : "2, 3"
}
}
}
And i also try to use another way, but i always get error with NumberFormatException.
Can anyone help me?
Thanks
