Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Organizing scripts better.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Feb 12, 2024
1 parent e70bbfa commit 0dc2a09
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion install-plugin.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e

# Use this script to install the plugin in a locally running Opensearch.
# Use this convenience script to install the built plugin in a locally running Opensearch.

DIR=`pwd`
sudo /usr/share/opensearch/bin/opensearch-plugin install file:${DIR}/build/distributions/opensearch-rest-plugin.zip
File renamed without changes.
6 changes: 6 additions & 0 deletions scripts/get-events.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

HOST=${1:-"localhost"}
STORE_NAME="awesome"

curl http://${HOST}:9200/.${STORE_NAME}_events/_search
6 changes: 6 additions & 0 deletions scripts/init-store.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

HOST=${1:-"localhost"}
STORE_NAME="awesome"

curl -X PUT http://${HOST}:9200/_plugins/search_relevance/${STORE_NAME}
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions scripts/send-event.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

HOST=${1:-"localhost"}
STORE_NAME="awesome"

curl -X POST http://${HOST}:9200/_plugins/search_relevance/${STORE_NAME} -H "Content-Type: application/json" -d @instant-search.json

0 comments on commit 0dc2a09

Please sign in to comment.