0
我刚刚创建停用词分析器喜欢这样禁用词分析
{
"query": {
"filtered": {
"query": {
"multi_match": {
"query": "an clubbing",
"fields": [
"event_name",
"event_place",
"event_description"
],
"analyzer": [
"filter_english_stopwords"
]
}
}
}}}
弹性搜索这
{
"settings": {
"analysis": {
"filter": {
"english_stopwords": {
"type": "stop",
"stopwords": "_english_"
}
},
"analyzer": {
"filter_english_stopwords": {
"type": "custom",
"tokenizer": "standard",
"filter": [
"english_stopwords",
"porter_stem"
]
}
}
}}}
,然后查询它从搜索的是好的,但 删除"an"
关键字它显示我所有的数据有词俱乐部没有泡吧 我必须找到所有数据有词泡吧 onl y
"_source": {
"event_id": "1669",
"event_name": "Exclusive Ladies Night Party",
"regular_id": "56750ee601fcfffc058b4567",
"event_place": "Asom Club Dwarka, Dwarka, New Delhi, India",
查看event_place的值。 请帮我一把。谢谢
我不明白什么是要求。抱歉。您使用了粗体字母,并没有提供任何示例文档或期望的结果。 –
我在那里添加了我的结果....其显示结果event_place与词俱乐部不俱乐部 –
'event_place'字段的映射是什么? –