forked from zotero/dataserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add separate Elasticsearch types for reading and writing
- Loading branch information
Showing
5 changed files
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$1" ]; then | ||
echo "Usage: $0 host" | ||
exit | ||
fi | ||
HOST="$1" | ||
|
||
# Get path to script's parent directory | ||
DIR=$(cd ${0%/*} && echo $PWD/${0##*/}) | ||
DIR=`dirname $DIR` | ||
DIR=`dirname $DIR` | ||
|
||
curl -XPOST "http://$HOST:9200/_aliases" -d @$DIR/aliases.json | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$1" ] || [ -z "$2" ]; then | ||
echo "Usage: $0 host index_version" | ||
echo "Usage: $0 host index_suffix" | ||
exit | ||
fi | ||
HOST="$1" | ||
INDEX_VERSION="$2" | ||
INDEX_SUFFIX="$2" | ||
|
||
# Get path to script's parent directory | ||
DIR=$(cd ${0%/*} && echo $PWD/${0##*/}) | ||
DIR=`dirname $DIR` | ||
DIR=`dirname $DIR` | ||
ITEM_FULLTEXT_DIR=$DIR/item_fulltext | ||
|
||
curl -XPUT "http://$HOST:9200/item_fulltext_index_v$INDEX_VERSION/_settings" -d @$ITEM_FULLTEXT_DIR/settings.json | ||
curl -XPUT "http://$HOST:9200/item_fulltext_index_$INDEX_SUFFIX/_settings" -d @$ITEM_FULLTEXT_DIR/settings.json | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters