mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
ingest: documentation for the drop processor (#34570)
This commit is contained in:
parent
eaa05fe762
commit
c447fc258a
@ -1260,6 +1260,21 @@ Reference key modifier example
|
|||||||
* error = REFUSED
|
* error = REFUSED
|
||||||
|======
|
|======
|
||||||
|
|
||||||
|
[[drop-processor]]
|
||||||
|
=== Drop Processor
|
||||||
|
Drops the document without raising any errors. This is useful to prevent the document from
|
||||||
|
getting indexed based on some condition.
|
||||||
|
|
||||||
|
[source,js]
|
||||||
|
--------------------------------------------------
|
||||||
|
{
|
||||||
|
"drop": {
|
||||||
|
"if" : "ctx.network_name == 'Guest'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--------------------------------------------------
|
||||||
|
// NOTCONSOLE
|
||||||
|
|
||||||
[[dot-expand-processor]]
|
[[dot-expand-processor]]
|
||||||
=== Dot Expander Processor
|
=== Dot Expander Processor
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user