我正在尝试查找保存在Percolator索引中的特定查询。还没有看到有关它的任何文档。 其中一个SOF question有助于获取索引中所有持续存在的查询。在Elasticsearch percolator索引中查找特定查询
我的一个样本查询像
curl -XPUT "http://localhost:9200/notifications/.percolator/4" -d'
{
"query" : {
"bool": {
"should": [
{ "term": {
"tags": "Hbase"
}
},
{ "term": {
"user": "abc"
}
}
]
, "minimum_number_should_match": 1
}
}
}'
有什么办法,我可以拉一个特定的查询过滤咖啡
curl -XPUT "http://localhost:9200/notifications/.percolator/1" -d'
{
"query" : {
"match" : {
"tags" : "elasticsearch"
}}
}'
与其他样本查询坚持?基于上面的例子,我想找到一个与用户匹配的查询:“abc”
你能举个例子吗?查询可能在您的percolator索引中,并描述了您想要如何找到它们? – eemp
@eemp,我用一些样本更新了这个问题。让我知道我是否缺少任何东西。 –