Company
Date Published
Author
Martijn van Groningen
Word count
1600
Language
-
Hacker News points
None

Summary

Elasticsearch's percolator has undergone significant enhancements in version 5.0, making it more flexible and efficient. Key improvements include the ability to skip evaluating most percolator queries, reducing the execution time, and the introduction of a percolator field mapper that allows queries to be stored in any field and type, rather than a special .percolator type. This update is part of a broader refactoring effort that aims to enhance scalability and performance by ensuring that only relevant queries are evaluated, thereby alleviating memory pressure and improving speed. The previously used percolate and multi percolate APIs have been replaced by more versatile search and multi search APIs, which not only return more detailed information but also support additional features like pagination. Scoring has also been revamped to reflect how well a percolator query matches a document using the in-memory Lucene index. Despite these changes, existing percolate and mpercolate APIs are still operational but deprecated, with plans to phase them out in future releases. Users are encouraged to transition to the new system and explore the ongoing improvements to the percolator field mapper for enhanced query execution.