Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for percolating an existing document.
The percolate an existing document feature executes an internal get operation to get the source of the document to percolate. All options for percolating an existing document: * `id` - The id of the document to percolate. * `type` - The type of the document to percolate. * `index` - The index to fetch the document to percolate from. * `routing` - The routing value to use to retrieve the document to percolate. * `preference` - Which shard to prefer (defaults to `_local`). * `version` - Enables a version check. If the fetched document's version isn't equal to the specified version then the request fails with a version conflict and the percolation request is aborted. All the option can be specified inside the `get` body part or via query string arguments. Internally the percolate api will issue a get request for fetching the`_source` of the document to percolate. For this feature to work the `_source` for documents to percolate need to be stored. Closes #3380
- Loading branch information
Showing
10 changed files
with
830 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.