Hi,
I have a field with type
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "case_insensitive"
}
}
},
when I try to run a query_string search like so:
"query": {
"bool": {
"must": {
"query_string": {
"query": "*test-word*",
"fields": [
"name",
],
"analyze_wildcard": true
}
}
}
}
it return nothing
only if I search like so:
"query": {
"bool": {
"must": {
"query_string": {
"query": "*test-word*",
"fields": [
"name.keyword",
],
"analyze_wildcard": true
}
}
}
}
it works.
Any advice why query string search only works on keyword fields?
Thanks