"type": "illegal_argument_exception", "reason": "[field_sort] unknown field [title], parser not found"

{
"query":{
"bool": {
"must": {
"bool": {
"should": [
{
"range": {
"createdOn": {
"gte": "1481049000000",
"lte": "1512671399000"
}
}
}
],
"must_not": [
{
"match": {
"deleteFlag": "1"
}
}
]
}
},
"filter": {
"type": {
"value": "com.uralian.cgiats.model.Candidate"
}
}
}
},
"_source":[
"*"
],
"sort":[
{
"title": {
"order": "desc",
"missing": "_last"

  }

}

]
}

Error :slight_smile:

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "[field_sort] unknown field [title], parser not found"
}
],
"type": "illegal_argument_exception",
"reason": "[field_sort] unknown field [title], parser not found"
},
"status": 400
}

we are getting response in Elasticsearch 2.4 when we moved version of jar to 5.6 we see above error reponse.

Thanks

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Do you run the query on a specific index or on all indices?
What is the mapping?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.