mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
* delete asciidoc files
* add migrated files
* fix errors
* Disable docs tests
* Clarify release notes page titles
* Revert "Clarify release notes page titles"
This reverts commit 8be688648d
.
* Comment out edternal URI images
* Clean up query languages landing pages, link to conceptual docs
* Add .md to url
* Fixes inference processor nesting.
---------
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
2.3 KiB
2.3 KiB
mapped_pages | |
---|---|
|
Reindex context [painless-reindex-context]
Use a Painless script in a reindex operation to add, modify, or delete fields within each document in an original index as its reindexed into a target index.
Variables
params
(Map
, read-only)- User-defined parameters passed in as part of the query.
ctx['op']
(String
)- The name of the operation.
ctx['_routing']
(String
)- The value used to select a shard for document storage.
ctx['_index']
(String
)- The name of the index.
ctx['_id']
(String
)- The unique document id.
ctx['_version']
(int
)- The current version of the document.
ctx['_source']
(Map
)- Contains extracted JSON in a
Map
andList
structure for the fields existing in a stored document.
Side Effects
ctx['op']
- Use the default of
index
to update a document. Set tonoop
to specify no operation ordelete
to delete the current document from the index. ctx['_routing']
- Modify this to change the routing value for the current document.
ctx['_index']
- Modify this to change the destination index for the current document.
ctx['_id']
- Modify this to change the id for the current document.
ctx['_version']
(int
)- Modify this to modify the version for the current document.
ctx['_source']
- Modify the values in the
Map/List
structure to add, modify, or delete the fields of a document.
Return
void
- No expected return value.
API
The standard Painless API is available.