From 7788662d4903511b55d2fd950094321180d4ba76 Mon Sep 17 00:00:00 2001 From: Medcl Date: Wed, 19 May 2021 17:34:02 +0800 Subject: [PATCH 1/2] Create FUNDING.yml --- .github/FUNDING.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..9c6fb0d --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +patreon: medcl +custom: ["https://www.buymeacoffee.com/medcl"] From 3f90a260db6a866a7e3f03403ba54a830f385646 Mon Sep 17 00:00:00 2001 From: Medcl Date: Thu, 10 Jun 2021 09:41:20 +0800 Subject: [PATCH 2/2] add range query example --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3dd7484..39c7016 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,12 @@ filter migration with range query ``` +range query, keyword type and escape + +``` +./esm -s https://192.168.3.98:9200 -m test:123 -o 1.txt -x test1 -q "@timestamp.keyword:[\"2021-01-17 03:41:20\" TO \"2021-03-17 03:41:20\"]" +``` + generate testing data, if `input.json` contains 10 documents, the follow command will ingest 100 documents, good for testing ``` ./bin/esm -i input.json -d http://localhost:9201 -y target-index1 --regenerate_id --repeat_times=10