2018-12-20 08:04:54 -05:00
|
|
|
[[drop-processor]]
|
2020-08-12 11:49:54 -04:00
|
|
|
=== Drop processor
|
|
|
|
++++
|
|
|
|
<titleabbrev>Drop</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
2018-12-20 08:04:54 -05:00
|
|
|
Drops the document without raising any errors. This is useful to prevent the document from
|
|
|
|
getting indexed based on some condition.
|
|
|
|
|
|
|
|
[[drop-options]]
|
|
|
|
.Drop Options
|
|
|
|
[options="header"]
|
|
|
|
|======
|
|
|
|
| Name | Required | Default | Description
|
|
|
|
include::common-options.asciidoc[]
|
|
|
|
|======
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"drop": {
|
|
|
|
"if" : "ctx.network_name == 'Guest'"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// NOTCONSOLE
|