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


(satish) #1

{
"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


(David Pilato) #2

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?


(system) closed #3

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