获取弹性搜索浏览器查询 [英] Getting ElasticSearch Percolator Queries

查看:114
本文介绍了获取弹性搜索浏览器查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查询ElasticSearch当前存储在系统上的所有渗滤器查询。我的第一个想法是用一个类型过滤器来做一个match_all,但是从我的测试来看,如果我做了一个match_all查询,似乎没有返回。我没有一生能够找到正确的方式来查询它们或任何文档,所以任何帮助是非常感谢。



还有其他有关如何处理存储过滤器查询与其他类型不同的信息。

解决方案

这应该返回存储在弹性搜索集群中的所有渗滤文件:

  POST _all / .percolator / _search 

此搜索_per索引(您注册的每个索引)用于.percolator类型的文档。 / p>

它基本上做了你上面描述的:一个带有类型过滤器的match_all。然而,它以一种稍微不同的方式实现。



我没有玩过这么多,但我认为这实际上可以让你执行查询/如果您正在寻找特定类型的渗滤器,请过滤渗滤器。



这与Elasticsearch版本1.3.4


I'm trying to query ElasticSearch for all the percolator queries that are currently stored on the system. My first thought was to do a match_all with a type filter but from my testing they don't seem to be returned if I do a match_all query. I haven't for the life of me been able to find the proper way to query them or any documentation on it so any help is greatly appreciated.

Also any other information on how stored percolator queries are treated differently from other types is appreciated.

解决方案

This should return all percolator documents stored in your elasticsearch cluster:

POST _all/.percolator/_search

This searches _all indexes (every index you have registered) for documents of the .percolator type.

It basically does what you describe above: "a match_all with a type filter". Yet it accomplishes it in a slightly different way.

I have not played around with this much more than this, but I assume this would actually allow you to perform a query/filter on percolators if you are looking for a percolator of a particular type.

This is with Elasticsearch version 1.3.4

这篇关于获取弹性搜索浏览器查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆