elasticsearch問題記錄

中文分詞器,無法搜索

"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,實際搜索搜索不出。不知道爲啥,先記下來。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章