ingest: documentation for the drop processor (#34570)

This commit is contained in:
Jake Landis 2018-10-23 12:30:23 -05:00 committed by GitHub
parent eaa05fe762
commit c447fc258a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -1260,6 +1260,21 @@ Reference key modifier example
* 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 Expander Processor