ES version 5.2.
Is it possible to do a search query from ingest node? I want to do a percolator query as I'm ingesting a document and potentially supplement the ingested document with results from the query. I thought it might be possible to do from the script processor with Painless, but can't see anything in the painless docs for doing a search query.
I am currently using Logstash to achieve the same goal, but figure it would be far more efficient to do within ES, especially if using Elastic Cloud.