-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Open
Labels
:Search Relevance/ES|QLSearch functionality in ES|QLSearch functionality in ES|QL>bugTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearch
Description
To reproduce:
PUT testesql
{
"mappings": {
"properties": {
"constant": {
"type": "constant_keyword"
}
}
}
}
Query:
FROM testesql | WHERE KQL("constant: *f*")
Failure:
{
"error": {
"root_cause": [
{
"type": "query_shard_exception",
"reason": "Can only use wildcard queries on keyword, text and wildcard fields - not on [constant] which is of type [constant_keyword]",
"index_uuid": "-KAN3lROTYSKdSNUK0GdHQ",
"index": "testesql"
}
],
"type": "query_shard_exception",
"reason": "Can only use wildcard queries on keyword, text and wildcard fields - not on [constant] which is of type [constant_keyword]",
"index_uuid": "-KAN3lROTYSKdSNUK0GdHQ",
"index": "testesql"
},
"status": 400
}
Metadata
Metadata
Assignees
Labels
:Search Relevance/ES|QLSearch functionality in ES|QLSearch functionality in ES|QL>bugTeam:Search RelevanceMeta label for the Search Relevance team in ElasticsearchMeta label for the Search Relevance team in Elasticsearch