【发布时间】:2012-10-04 04:12:58
【问题描述】:
我有 POSTS,可以有许多 TAGS。我只希望我的查询返回带有唯一标签的 POSTS 而没有其他标签。例如。
posts: [
{ id: 1
tags: [hello, world]
...
}
{ id: 2
tags: [hello]
}
]
以下内容:
搜索?q=tag:hello
应该只返回:
posts: [
{ id: 2
tags: [hello]
}
]
我将如何使用 弹性搜索 完成此任务?
【问题讨论】:
标签: lucene elasticsearch