My index has the following fields:
(1)title:简单分析字符串。
(2)美食:包括诸如国际|自助餐|亚洲'等字符串值。
I use the following query strings:
(1)
"query_string": {
"fields": ["title", " cuisine"],
"query": "*buffet*"
}
(2)
"multi_match": {
"query": "*buffet*",
"type": "phrase_prefix",
"fields": ["title", " cuisine"]
}
None of them works as both return empty result. Any advice and insight is appreciated. Thanks!
以下是我的映射片段:
{
"search.weeloy.asia": {
"mappings": {
"data": {
"properties": {
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"cuisine": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},