What is the percolator in Elasticsearch?
Answer
The percolator is a feature that inverts the normal search flow: instead of storing documents and querying them, you store queries in an index and then check which stored queries match a given document. This is called "reverse search" or "prospective search." Real-world use cases include: alert systems (notify a user when a new product matches their saved search), content tagging (automatically classify incoming articles), and news filtering (route new articles to subscribers based on their interests). You index queries using the percolate field type and then use the percolate query to find all stored queries that match a given document.
Previous
What is a custom analyzer in Elasticsearch?
Next
What are update_by_query and delete_by_query in Elasticsearch?
More Elasticsearch Questions
View all →- Intermediate What is the difference between query context and filter context in Elasticsearch?
- Intermediate What is a bool query in Elasticsearch?
- Intermediate What are aggregations in Elasticsearch?
- Intermediate What is the difference between text and keyword field types?
- Intermediate What are index templates and component templates in Elasticsearch?