drop.asciidoc 519 B

12345678910111213141516171819202122
  1. [[drop-processor]]
  2. === Drop Processor
  3. Drops the document without raising any errors. This is useful to prevent the document from
  4. getting indexed based on some condition.
  5. [[drop-options]]
  6. .Drop Options
  7. [options="header"]
  8. |======
  9. | Name | Required | Default | Description
  10. include::common-options.asciidoc[]
  11. |======
  12. [source,js]
  13. --------------------------------------------------
  14. {
  15. "drop": {
  16. "if" : "ctx.network_name == 'Guest'"
  17. }
  18. }
  19. --------------------------------------------------
  20. // NOTCONSOLE