I am using elastic search in my Android application. I am passing filters in query string like below:
URL/IndexName/TypeName/_search?sort=registry_date:desc&from=0&size=10&q=firstname:رشید
That works fine. But i want to apply a prefix filter on firstname field for achieving below thing through query string:
{
"query": {
"bool": {
"must": [
{
"prefix": {
"firstname.keyword": "رشید"
}
}
],
"must_not": [],
"should": []
}
},
"from": 0,
"size": 10,
"sort": [
{
"registry_date": {
"order": "desc"
}
}
],
"aggs": {}
}
Any help?