渗透剂是什么意思/做弹性搜索? [英] What does percolator mean/do in elasticsearch?

查看:145
本文介绍了渗透剂是什么意思/做弹性搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使我阅读了Elasticsearch的文档,了解什么是渗滤器。我仍然很难理解它的含义,以及简单的用法。任何人都可以为我提供更多的细节?

解决方案

你通常做的是索引文档,并通过查询得到他们。渗透剂允许您简单地做的是根据索引的查询索引您的查询和渗透文件,以了解它们匹配的查询。它也被称为反向搜索,因为你所做的是与你过去相反的。



渗透剂有不同的用途,第一个是任何平台存储用户兴趣,以便在进入后立即将正确的内容发送给正确的用户。



例如,用户订阅特定主题,并且一旦该专题的新文章进入,通知将发送给感兴趣的用户。您可以使用将弹性搜索查询表达为用户兴趣查询DSL ,您可以在弹性搜索中注册,因为它是一个文档。每次发布新的文章时,无需索引,您可以渗透它,以了解哪些用户感兴趣。在这个时间点,您知道谁需要收到包含文章链接的通知(发送通知不是通过弹性搜索来完成的)。另外一个步骤也是索引内容本身,但不是必需的。



看看本演示文稿,可以从弹性搜索1.0开始查看其他几个可用的组合以及与渗滤器相结合的其他功能。


Even though I read the documentation for Elasticsearch to understand what a percolator is. I still have difficulty understanding what it means and where it is used in simple terms. Can anyone provide me with more details?

解决方案

What you usually do is index documents and get them back by querying. What the percolator allows you to do in a nutshell is index your queries and percolate documents against the indexed queries to know which queries they match. It's also called reversed search, as what you do is the opposite to what you are used to.

There are different usecases for the percolator, the first one being any platform that stores users interests in order to send the right content to the right users as soon as it comes in.

For instance a user subscribes to a specific topic, and as soon as a new article for that topic comes in, a notification will be sent to the interested users. You can express the users interests as an elasticsearch query, using the query DSL, and you can register it in elasticsearch as it was a document. Every time a new article is issued, without needing to index it, you can percolate it to know which users are interested in it. At this point in time you know who needs to receive a notification containing the article link (sending the notification is not done by elasticsearch though). An additional step would also be to index the content itself but that is not required.

Have a look at this presentation to see other couple of usecases and other features available in combination with the percolator starting from elasticsearch 1.0.

这篇关于渗透剂是什么意思/做弹性搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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