Skip to content

Commit 043ccf8

Browse files
author
Clément Tourrière
committed
Migrate to elasticsearch 7.0.0
1 parent f07130e commit 043ccf8

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Plugin versions are available for (at least) all minor versions of Elasticsearch
256256
The first 3 digits of plugin version is Elasticsearch versioning. The last digit is used for plugin versioning under an elasticsearch version.
257257

258258
To install it, launch this command in Elasticsearch directory replacing the url by the correct link for your Elasticsearch version (see table)
259-
`./bin/elasticsearch-plugin install https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.7.1.1/pathhierarchy-aggregation-6.7.1.1.zip`
259+
`./bin/elasticsearch-plugin install https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.0.0.0/pathhierarchy-aggregation-7.0.0.0.zip`
260260

261261
| elasticsearch version | plugin version | plugin url |
262262
| --------------------- | -------------- | ---------- |
@@ -269,6 +269,7 @@ To install it, launch this command in Elasticsearch directory replacing the url
269269
| 6.5.4 | 6.5.4.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.5.4.1/pathhierarchy-aggregation-6.5.4.1.zip |
270270
| 6.6.2 | 6.6.2.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.6.2.0/pathhierarchy-aggregation-6.6.2.0.zip |
271271
| 6.7.1 | 6.7.1.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.7.1.1/pathhierarchy-aggregation-6.7.1.1.zip |
272+
| 7.0.0 | 7.0.0.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.0.0.0/pathhierarchy-aggregation-7.0.0.0.zip |
272273

273274

274275
License

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
es_version = 6.7.1
2-
plugin_version = 6.7.1.1
1+
es_version = 7.0.0
2+
plugin_version = 7.0.0.0

src/test/resources/rest-api-spec/test/PathHierarchy/20_path_hierarchy.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
setup:
2-
- do:
3-
indices.create:
4-
index: filesystem
5-
body:
6-
mappings:
7-
file:
2+
- do:
3+
indices.create:
4+
index: filesystem
5+
body:
6+
settings:
7+
number_of_shards: 1
8+
number_of_replicas: 0
9+
mappings:
810
properties:
911
path:
1012
type: keyword
11-
index: false
12-
doc_values: true
13+
views:
14+
type: integer
15+
16+
- do:
17+
cluster.health:
18+
wait_for_status: green
1319

1420
---
1521
"Test with filesystem arborescence":
1622
- do:
1723
index:
1824
index: filesystem
19-
type: file
2025
id: 1
2126
body: { "path": "/My documents/Spreadsheets/Budget_2013.xls", "views": 10 }
2227

2328
- do:
2429
index:
2530
index: filesystem
26-
type: file
2731
id: 2
2832
body: { "path": "/My documents/Spreadsheets/Budget_2014.xls", "views": 7 }
2933

3034
- do:
3135
index:
3236
index: filesystem
33-
type: file
3437
id: 3
3538
body: { "path": "/My documents/Test.txt", "views": 1 }
3639

3740
- do:
3841
index:
3942
index: filesystem
40-
type: file
4143
id: 4
4244
body: { "path": "/My documents/Spreadsheets//Budget_2014.xls", "views": 12 }
4345

@@ -48,6 +50,7 @@ setup:
4850
# basic test
4951
- do:
5052
search:
53+
rest_total_hits_as_int: true
5154
body: {
5255
"size" : 0,
5356
"aggs" : {
@@ -96,6 +99,7 @@ setup:
9699
# test size
97100
- do:
98101
search:
102+
rest_total_hits_as_int: true
99103
body: {
100104
"size" : 0,
101105
"aggs" : {
@@ -120,14 +124,15 @@ setup:
120124
# test depth
121125
- do:
122126
search:
127+
rest_total_hits_as_int: true
123128
body: {
124129
"size" : 0,
125130
"aggs" : {
126131
"tree" : {
127132
"path_hierarchy" : {
128133
"field" : "path",
129134
"separator": "/",
130-
"order": [ {"_count": "desc"}, {"_key": "asc"}],
135+
"order": [{"_count": "desc"}, {"_key": "asc"}],
131136
"depth": 2
132137
},
133138
"aggs": {
@@ -155,14 +160,15 @@ setup:
155160
# test keep_blank_path
156161
- do:
157162
search:
163+
rest_total_hits_as_int: true
158164
body: {
159165
"size" : 0,
160166
"aggs" : {
161167
"tree" : {
162168
"path_hierarchy" : {
163169
"field" : "path",
164170
"separator": "/",
165-
"order": [ {"_count": "desc"}, {"_key": "asc"}],
171+
"order": [{"_count": "desc"}, {"_key": "asc"}],
166172
"keep_blank_path": "true"
167173
},
168174
"aggs": {
@@ -209,6 +215,7 @@ setup:
209215
# test multi characters separator
210216
- do:
211217
search:
218+
rest_total_hits_as_int: true
212219
body: {
213220
"size" : 0,
214221
"aggs" : {

0 commit comments

Comments
 (0)