I have an issue where queries to enterprisesearch's app_search (8.8.2) "query_suggestion" endpoint does not return suggestions when the engine is based on an elasticsearch index.
The endpoint works and are returning suggestions when creating an engine where the documents are created in Enterprisesearch (or when I create an engine based on the preset test data).
I suspect that my index is not setup correctly, to this is my index:
{
"elasticsearch_index_drupal_content": {
"aliases": {
"search-elasticsearch-index-drupal-content-alias": {}
},
"mappings": {
"properties": {
"_language": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"field_business_types": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"field_responsible": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"nid": {
"type": "long"
},
"node_grants": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"rendered_content": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"status": {
"type": "boolean"
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"topics_hierarchy": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"type_label": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"uid": {
"type": "long"
},
"url": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"settings": {
"index": {
"routing": {
"allocation": {
"include": {
"_tier_preference": "data_content"
}
}
},
"number_of_shards": "1",
"provided_name": "elasticsearch_index_drupal_content",
"creation_date": "1688403423531",
"number_of_replicas": "1",
"uuid": "YFgRe52dQha7TqZK-BnV_w",
"version": {
"created": "8080299"
}
}
}
}
}