From 8223ef386098305c90ee70c4d5019a9201d5efef Mon Sep 17 00:00:00 2001 From: simon987 Date: Mon, 3 Aug 2020 19:48:49 -0400 Subject: [PATCH] Update USAGE.md --- docs/USAGE.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/USAGE.md b/docs/USAGE.md index a1e2a05..696c7d0 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -51,6 +51,7 @@ Index options --es-url= Elasticsearch url with port. DEFAULT=http://localhost:9200 -p, --print Just print JSON documents to stdout. --script-file= Path to user script. + --async-script Execute user script asynchronously. --batch-size= Index batch size. DEFAULT: 100 -f, --force-reset Reset Elasticsearch mappings and settings. (You must use this option the first time you use the index command) @@ -62,6 +63,7 @@ Web options Exec-script options --script-file= Path to user script. + --async-script Execute user script asynchronously. Made by simon987 . Released under GPL-3.0 ``` @@ -243,6 +245,9 @@ it is currently unsupported and has no guaranties of back/forward compatibility. Print index in JSON format to stdout. * `--script-file` Path to user script. See [Scripting](scripting.md). + * `--async-script` + Use `wait_for_completion=false` elasticsearch option while executing user script. + (See [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html)) * `--batch-size=` Index batch size. Indexing is generally faster with larger batches, but payloads that are too large will fail and additional overhead for retrying with smaller sizes may slow