I'm trying to run following piece of query that's going to fix silly user typos:
POST analysis/_search
{
"suggest": {
"DidYouMean": {
"text": "Frnce",
"phrase": {
"field": "_all",
"analyzer": "standard",
"size": 1,
"real_word_error_likelihood": 0.9,
"max_errors": 0.5,
"gram_size": 1,
"confidence": 1.5,
"force_unigrams": true,
"direct_generator": [
{
"field": "_all",
"suggest_mode": "missing",
"min_word_length": 3
},
{
"field": "Title.stemmed",
"suggest_mode": "missing",
"min_word_length": 3
}
],
"collate": {
"query": {
"inline": {
"bool": {
"must": [
{
"multi_match": {
"query": "{{suggestion}}",
"fields": [
"SavedText",
"Title.stemmed",
"MetadataText"
],
"operator": "and"
}
},
{
"terms": {
"Permission": {
"index": "permission",
"type": "user",
"id": "4979846",
"path": "Permission"
}
}
}
]
}
}
}
}
}
}
}
}
However this produces following error:
"caused_by": {
"type": "illegal_argument_exception",
"reason": "features that prevent cachability are disabled on this context"
}
If I remove terms lookup, query works. Any idea how to fix this? It used to work in 1.7 version (the one I'm making upgrade from)