Skip to content

Commit

Permalink
feat(upgrade): backport some features from the ES7 branch which may b…
Browse files Browse the repository at this point in the history
…e ok to use now
  • Loading branch information
missinglink committed Nov 26, 2019
1 parent a3f1106 commit 6cab4f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 1 addition & 3 deletions mappings/partial/shape.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"type": "geo_shape",
"tree": "quadtree",
"tree_levels": "20"
"type": "geo_shape"
}
8 changes: 7 additions & 1 deletion scripts/setup_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ if [[ "${ES_VERSION}" == "2.4"* ]]; then
# start elasticsearch server
/tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp
else
FILENAME="elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz"

# prior to ES7 the architecture was not included in the filename
if [[ "${ES_VERSION}" == "5"* || "${ES_VERSION}" == "6"* ]]; then
FILENAME="elasticsearch-${ES_VERSION}.tar.gz"
fi

# download from new host
wget -O - https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz \
wget -O - "https://artifacts.elastic.co/downloads/elasticsearch/${FILENAME}" \
| tar xz --directory=/tmp/elasticsearch --strip-components=1

# install ICU plugin
Expand Down
2 changes: 1 addition & 1 deletion settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function generate(){
"lowercase",
"icu_folding",
"trim",
"word_delimiter",
"custom_admin",
"word_delimiter",
"unique_only_same_position",
"notnull",
"flatten_graph"
Expand Down
8 changes: 3 additions & 5 deletions test/fixtures/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"lowercase",
"icu_folding",
"trim",
"word_delimiter",
"custom_admin",
"word_delimiter",
"unique_only_same_position",
"notnull",
"flatten_graph"
Expand Down Expand Up @@ -1156,9 +1156,7 @@
"type": "geo_point"
},
"shape": {
"type": "geo_shape",
"tree": "quadtree",
"tree_levels": "20"
"type": "geo_shape"
},
"bounding_box": {
"type": "keyword",
Expand Down Expand Up @@ -1230,4 +1228,4 @@
"dynamic": "strict"
}
}
}
}

0 comments on commit 6cab4f8

Please sign in to comment.