Skip to content

Commit b85a0c2

Browse files
committed
Relocate scripts useful in testing.
Signed-off-by: Eric Pugh <[email protected]>
1 parent f713d7b commit b85a0c2

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash -e
22

3+
# Delete and recreate the ubi indexes using the schema defined in the plugin
4+
35
curl -s -X DELETE http://localhost:9200/ubi_queries,ubi_events | jq
46

57
curl -s -X POST http://localhost:9200/_plugins/ubi/initialize | jq
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/bin/bash -e
22

3+
# An example multi search UBI search of the ecommerce index.
4+
35
curl -s -X GET "http://localhost:9200/_msearch" -H 'Content-Type: application/json' -d'
46
{ "index": "ecommerce"}
57
{ "query": { "match_all": {} }, "ext": { "ubi": { "query_id": "11111" } } }
68
{ "index": "ecommerce"}
79
{ "query": { "match_all": {} }, "ext": { "ubi": { "query_id": "22222" } } }
8-
'
10+
'

0 commit comments

Comments
 (0)