【发布时间】:2016-02-23 17:34:13
【问题描述】:
我有一个包含类似条目的数据库
title: This is my awesome title
abstract: A more detailed descriptions of what [...]
我想构建一个与上述文档匹配的 Elasticsearch 查询,例如,
awe detai
用词表示:具有多个搜索词的多匹配词组前缀查询。 (这旨在用作“键入时搜索”功能。)
我知道您可以如何组合 multi_match 和短语前缀,但我不清楚如何为多个搜索词执行此操作。
有什么提示吗?
【问题讨论】:
-
您尝试在
filter中使用terms吗?根据the doc -
awe detai 所以你的意思是如果用户输入你想找到一个文件?
标签: elasticsearch