You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A javascript can be provided within the couchdb settings that can munge the changes stream. The json provided to the script is under a var called ctx with the relevant seq stream change (for example, ctx.doc will refer to the document, or ctx.deleted is the flag if its deleted or not).
Note, this feature requires the lang-javascript plugin.
The ctx.doc can be changed and its value can will be indexed (assuming its not a deleted change). Also, if ctx.ignore is set to true, that change seq will be ignore and not applied.
Here is an example setting that adds field1 with value value1 to all docs.
with elastic/rally#1259 we changed segment memory charts to be on a logarithmic scale. This is the final step to getting them visualized on elasticsearch-benchmarks.elastic.co
A javascript can be provided within the
couchdb
settings that can munge the changes stream. The json provided to the script is under a var calledctx
with the relevant seq stream change (for example,ctx.doc
will refer to the document, orctx.deleted
is the flag if its deleted or not).Note, this feature requires the
lang-javascript
plugin.The
ctx.doc
can be changed and its value can will be indexed (assuming its not a deleted change). Also, ifctx.ignore
is set totrue
, that change seq will be ignore and not applied.Here is an example setting that adds
field1
with valuevalue1
to all docs.The text was updated successfully, but these errors were encountered: