Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Percolating existing document api #3380
A common use case is to percolate a document that has just been indexed. A big advantage would be to just specify the index, type and id of a document (which is returned with each index response) that has just been indexed, internally a get request can then fetch the content of the recently indexed document and then the percolate api will execute on that.
Percolate an existing document with id 1 and type tweet from index twitter:
curl -XGET 'localhost:9200/twitter/tweet/1/_percolate'
Percolate an existing document with id 2 and type tweet from index twitter-2013: (percolating 2013 tweet against 2012 queries)
curl -XGET 'localhost:9200/twitter-2013/tweet/2/_percolate?percolate_index=twitter-2012'
Additional options for percolating an existing document on top of existing percolator options:
Internally the percolate api will issue a get request for fetching the
@phrone This is actually possible via get source filtering , but it just needs to be exposed to the percolate rest api.