a percolate query is applied at search time within the search API.
the documents parameter helps you to pass a list of documents instead of a single doc with document
Also you can use _msearch if you wish but I suspect the previous option will be faster.
the following are the only parameters (with few more optional which I'm not mentioning here)
index - The index the document resides in. This is a required parameter.
type - The type of the document to fetch. This is a required parameter.
id - The id of the document to fetch. This is a required parameter.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.