我正在尝试查找保存在 Percolator Index 中的特定查询。没有看到任何相关的文档。SOF问题之一有助于将所有查询保留在索引中。
我的一个示例查询保留在 Percolator 中
curl -XPUT "http://localhost:9200/notifications/.percolator/1" -d'
{
"query" : {
"match" : {
"tags" : "elasticsearch"
}}
}'
和其他示例查询,如
curl -XPUT "http://localhost:9200/notifications/.percolator/4" -d'
{
"query" : {
"bool": {
"should": [
{ "term": {
"tags": "Hbase"
}
},
{ "term": {
"user": "abc"
}
}
]
, "minimum_number_should_match": 1
}
}
}'
有什么方法可以提取特定查询吗?根据上面的例子,我想找到一个与用户匹配的查询:“abc”