Skip to content

Commit 6cab4f8

Browse files
committed
feat(upgrade): backport some features from the ES7 branch which may be ok to use now
1 parent a3f1106 commit 6cab4f8

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

Diff for: mappings/partial/shape.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"type": "geo_shape",
3-
"tree": "quadtree",
4-
"tree_levels": "20"
2+
"type": "geo_shape"
53
}

Diff for: scripts/setup_ci.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ if [[ "${ES_VERSION}" == "2.4"* ]]; then
2222
# start elasticsearch server
2323
/tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp
2424
else
25+
FILENAME="elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz"
26+
27+
# prior to ES7 the architecture was not included in the filename
28+
if [[ "${ES_VERSION}" == "5"* || "${ES_VERSION}" == "6"* ]]; then
29+
FILENAME="elasticsearch-${ES_VERSION}.tar.gz"
30+
fi
2531

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

3036
# install ICU plugin

Diff for: settings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function generate(){
4343
"lowercase",
4444
"icu_folding",
4545
"trim",
46-
"word_delimiter",
4746
"custom_admin",
47+
"word_delimiter",
4848
"unique_only_same_position",
4949
"notnull",
5050
"flatten_graph"

Diff for: test/fixtures/expected.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"lowercase",
2424
"icu_folding",
2525
"trim",
26-
"word_delimiter",
2726
"custom_admin",
27+
"word_delimiter",
2828
"unique_only_same_position",
2929
"notnull",
3030
"flatten_graph"
@@ -1156,9 +1156,7 @@
11561156
"type": "geo_point"
11571157
},
11581158
"shape": {
1159-
"type": "geo_shape",
1160-
"tree": "quadtree",
1161-
"tree_levels": "20"
1159+
"type": "geo_shape"
11621160
},
11631161
"bounding_box": {
11641162
"type": "keyword",
@@ -1230,4 +1228,4 @@
12301228
"dynamic": "strict"
12311229
}
12321230
}
1233-
}
1231+
}

0 commit comments

Comments
 (0)