From bb918335696f39b72434243ef1d80144fcdf4cc0 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Wed, 16 Nov 2016 11:17:03 +0100
Subject: [PATCH] Add utility script to test ES request

---
 .../src/test/resources/curl_test.sh           | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100755 duniter4j-elasticsearch/src/test/resources/curl_test.sh

diff --git a/duniter4j-elasticsearch/src/test/resources/curl_test.sh b/duniter4j-elasticsearch/src/test/resources/curl_test.sh
new file mode 100755
index 00000000..439133dd
--- /dev/null
+++ b/duniter4j-elasticsearch/src/test/resources/curl_test.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+curl -XPOST "http://data.duniter.fr/market/record/_search?pretty&scroll=1m" -d'
+{
+  "query": {
+        
+        "bool":{
+            "should": {
+                "range":{
+                    "time":{
+                        "gte":0
+                    }
+                }
+            },
+            "filter": [
+                {"term":{
+                        "currency":"sou"
+                    }
+                }                
+            ]
+        }
+  },
+  "from":0,
+  "size":100
+}'
+
-- 
GitLab