Searches return `400` error response on Hugo site
Searches with multiple words are returning an error:
{
"error": {
"root_cause": [
{
"type": "query_shard_exception",
"reason": "failed to create query: field:[body_content] was indexed without position data; cannot run PhraseQuery",
"index_uuid": "esEuq_8oSjm4FKg7ezu9UA",
"index": "search-gitlab-docs-hugo"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "search-gitlab-docs-hugo",
"node": "dDvKR3I8QKauXifxuJgFrw",
"reason": {
"type": "query_shard_exception",
"reason": "failed to create query: field:[body_content] was indexed without position data; cannot run PhraseQuery",
"index_uuid": "esEuq_8oSjm4FKg7ezu9UA",
"index": "search-gitlab-docs-hugo",
"caused_by": {
"type": "illegal_state_exception",
"reason": "field:[body_content] was indexed without position data; cannot run PhraseQuery"
}
}
}
]
},
"status": 400
}
Recent MRs with potential impact to search: