I want to throw my many documents to a LOT of percolator queries (my query count is in the 6-digit). I've found how to multi-percolate many documents at once, but haven't found how to bulk-add many queries at once.
According to the documentation, I can register a query in the percolator using:
curl -XPUT 'localhost:9200/my-index/.percolator/1' -d '{
"query" : {
"match" : {
"message" : "bonsai tree"
}
}
}'
Can I add many of these in one fell swoop?
Since queries are indexed like normal documents would, you could simply bulk-add them like this: