Recall & Review
beginner
What is a percolate query in Elasticsearch?
A percolate query lets you register queries and then check if a document matches any of those stored queries. It's like reverse searching: instead of searching documents with a query, you search queries with a document.
Click to reveal answer
intermediate
How do you register a query for percolation in Elasticsearch?
You index a document into a special index with a percolator field type, where the document contains the query you want to register. This stored query can later be matched against incoming documents.
Click to reveal answer
beginner
What is the main difference between a normal search and a percolate query?
Normal search finds documents matching a query. Percolate query finds queries matching a document. It's like flipping the search direction.
Click to reveal answer
beginner
Which Elasticsearch field type is required to use percolate queries?
The 'percolator' field type is required. It stores queries as documents so they can be matched against incoming documents.
Click to reveal answer
intermediate
Can percolate queries be used for real-time alerting? Why or why not?
Yes, because you can register queries representing conditions to watch for, then percolate incoming documents to see if they match any condition, triggering alerts quickly.
Click to reveal answer
What does a percolate query in Elasticsearch do?
✗ Incorrect
A percolate query finds stored queries that match a document, reversing the usual search direction.
Which field type must be used to store queries for percolation?
✗ Incorrect
The 'percolator' field type is designed to store queries for percolate queries.
What is the main use case of percolate queries?
✗ Incorrect
Percolate queries are used to find which stored queries match a given document.
How do you perform a percolate query in Elasticsearch?
✗ Incorrect
You send a document in the percolate query to find stored queries that match it.
Can percolate queries be used for alerting on new data?
✗ Incorrect
Percolate queries can match new documents against stored queries, useful for alerting.
Explain how percolate queries work in Elasticsearch and give a simple example use case.
Think about searching queries instead of documents.
You got /4 concepts.
Describe the steps to register a query for percolation and then use a percolate query to find matches.
Focus on how queries are stored and how documents are matched.
You got /3 concepts.