Hi everyone . It would be helpful if someone can help me with this
"index": "default",
"type": "user",
"from": 0,
"size": 10,
"body": {
"sort": [
{
"lastPost.created": {
"order": "desc"
}
},
{
"firstName": "desc"
},
{
"lastName": "desc"
}
],
"query": {
"bool": {
"must": [
{
"match": {
"sector._id": "56085c40d5497167554c6391"
}
}
]
},
"terms": {
"userId": [
"59d6603e068e463698eca7cf",
"58b12ef9154fd29f69b6f651"
]
}
}
}
returns an error:
[parsing_exception] [bool] malformed query, expected [END_OBJECT] but found [FIELD_NAME], with { line=1 col=169 }
Without terms it works, but I need to see users with specific id-s