I am unfamiliar with percolate and honestly a bit confused. My idea is to use percolate on an existing index and not only getting how many match the query, but also which exact ones. The field "_percolator_document_slot" seems to only show the index position of the matching document. Is it possible to modify this to show the exact ID of the matching documents? Or adding a new field to get the matching document ID some how?
Welcome back! No worries at all, the percolate feature takes some time to get your head around. It's kind of like a reverse query in a way.
The general idea is that field of the
percolate type in an index contains a query that you can use to find out if a stored query exists which matches that document. A common use case would be for alerts on ecommerce sites letting you know that an item is back in stock. So you would know the documents and want to find the query that matches that document, or set of documents as covered here.
Hopefully that helps! If not do let us know.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.