Skip to content

Commit c447fc2

Browse files
authored
ingest: documentation for the drop processor (#34570)
1 parent eaa05fe commit c447fc2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/reference/ingest/ingest-node.asciidoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,21 @@ Reference key modifier example
12601260
* error = REFUSED
12611261
|======
12621262

1263+
[[drop-processor]]
1264+
=== Drop Processor
1265+
Drops the document without raising any errors. This is useful to prevent the document from
1266+
getting indexed based on some condition.
1267+
1268+
[source,js]
1269+
--------------------------------------------------
1270+
{
1271+
"drop": {
1272+
"if" : "ctx.network_name == 'Guest'"
1273+
}
1274+
}
1275+
--------------------------------------------------
1276+
// NOTCONSOLE
1277+
12631278
[[dot-expand-processor]]
12641279
=== Dot Expander Processor
12651280

0 commit comments

Comments
 (0)