中文分詞器,無法搜索
"commet": {
"type": "text",
"analyzer": "smartcn",
"search_analyzer": "smartcn"
}
{
"size": 10,
"_source": [
"cloth_big_graph",
"cloth_name",
"colo_model",
"brand"
],
"query": {"bool":{"must":[{"match":{"brand":"xxx"}},{"bool":{"should":[{"term":{"cloth_name":"內衣 褲"}}]}}]}}
}
'
mapping中使用了中文分詞smartcn,實際搜索搜索不出。不知道爲啥,先記下來。