Skip to content

Commit aed947f

Browse files
committed
ingest: documentation for the drop processor (#34570)
1 parent e9a380c commit aed947f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/reference/ingest/ingest-node.asciidoc

+15
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,21 @@ Reference key modifier example
12421242
* error = REFUSED
12431243
|======
12441244

1245+
[[drop-processor]]
1246+
=== Drop Processor
1247+
Drops the document without raising any errors. This is useful to prevent the document from
1248+
getting indexed based on some condition.
1249+
1250+
[source,js]
1251+
--------------------------------------------------
1252+
{
1253+
"drop": {
1254+
"if" : "ctx.network_name == 'Guest'"
1255+
}
1256+
}
1257+
--------------------------------------------------
1258+
// NOTCONSOLE
1259+
12451260
[[dot-expand-processor]]
12461261
=== Dot Expander Processor
12471262

0 commit comments

Comments
 (0)