Skip to content

Commit 3f38bac

Browse files
author
Bapt Abl
committed
Update readme
1 parent 38edce9 commit 3f38bac

File tree

1 file changed

+17
-59
lines changed

1 file changed

+17
-59
lines changed

README.md

Lines changed: 17 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Installation
1919

2020
Build
2121
-----
22-
Compatible with Java version 11
2322

2423
Development Environment Setup
2524
------------
@@ -65,7 +64,6 @@ Examples
6564

6665
```
6766
# Add data:
68-
6967
PUT filesystem
7068
{
7169
"mappings": {
@@ -76,28 +74,16 @@ PUT filesystem
7674
}
7775
}
7876
}
79-
80-
PUT /filesystem/_doc/1
81-
{
82-
"path": "/My documents/Spreadsheets/Budget_2013.xls",
83-
"views": 10
84-
}
85-
86-
PUT /filesystem/_doc/2
87-
{
88-
"path": "/My documents/Spreadsheets/Budget_2014.xls",
89-
"views": 7
90-
}
91-
92-
PUT /filesystem/_doc/3
93-
{
94-
"path": "/My documents/Test.txt",
95-
"views": 1
96-
}
77+
POST filesystem/_bulk?refresh
78+
{"index":{}}
79+
{"path":"/My documents/Spreadsheets/Budget_2013.xls","views":10}
80+
{"index":{}}
81+
{"path":"/My documents/Spreadsheets/Budget_2014.xls","views":7}
82+
{"index":{}}
83+
{"path":"/My documents/Test.txt","views":1}
9784
9885
9986
# Path hierarchy request :
100-
10187
GET /filesystem/_search?size=0
10288
{
10389
"aggs": {
@@ -119,7 +105,6 @@ GET /filesystem/_search?size=0
119105
120106
121107
Result :
122-
123108
{"aggregations": {
124109
"tree": {
125110
"sum_other_doc_count": 0,
@@ -170,13 +155,11 @@ Result :
170155
]
171156
}
172157
}
173-
174158
```
175159

176160
#### Script
177161

178162
```
179-
180163
PUT calendar
181164
{
182165
"mappings": {
@@ -188,18 +171,13 @@ PUT calendar
188171
}
189172
}
190173
191-
PUT /calendar/_doc/1
192-
{
193-
"date": "2012-01-10T02:47:28"
194-
}
195-
PUT /calendar/_doc/2
196-
{
197-
"date": "2012-01-05T01:43:35"
198-
}
199-
PUT /calendar/_doc/3
200-
{
201-
"date": "2012-05-01T12:24:19"
202-
}
174+
POST calendar/_bulk?refresh
175+
{"index":{}}
176+
{"date": "2012-01-10T02:47:28"}
177+
{"index":{}}
178+
{"date": "2012-01-05T01:43:35"}
179+
{"index":{}}
180+
{"date": "2012-05-01T12:24:19"}
203181
204182
GET /calendar/_search?size=0
205183
{
@@ -326,33 +304,13 @@ GET /calendar/_search?size=0
326304
Installation
327305
------------
328306

307+
Built with Java 17.
308+
329309
The first 3 digits of plugin version is Elasticsearch versioning. The last digit is used for plugin versioning under an elasticsearch version.
330310

331-
To install it, launch this command in Elasticsearch directory replacing the url by the correct link for your Elasticsearch version (see table)
311+
To install it, launch this command in Elasticsearch directory replacing the url with a release suiting your case (please check available releases [here](https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases)):
332312
`./bin/elasticsearch-plugin install https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.17.6.0/pathhierarchy-aggregation-7.17.6.0.zip`
333313

334-
| elasticsearch version | plugin version | plugin url |
335-
| --------------------- | -------------- | ---------- |
336-
| 1.6.0 | 1.6.0.4 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v1.6.0.4/elasticsearch-aggregation-pathhierarchy-1.6.0.4.zip |
337-
| 6.0.1 | 6.0.1.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.0.1.1/elasticsearch-aggregation-pathhierarchy-6.0.1.1.zip |
338-
| 6.1.4 | 6.1.4.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.1.4.1/elasticsearch-aggregation-pathhierarchy-6.1.4.1.zip |
339-
| 6.2.4 | 6.2.4.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.2.4.1/elasticsearch-aggregation-pathhierarchy-6.2.4.1.zip |
340-
| 6.3.2 | 6.3.2.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.3.2.1/elasticsearch-aggregation-pathhierarchy-6.3.2.1.zip |
341-
| 6.4.3 | 6.4.3.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.4.3.0/elasticsearch-aggregation-pathhierarchy-6.4.3.0.zip |
342-
| 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 |
343-
| 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 |
344-
| 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 |
345-
| 6.8.2 | 6.8.2.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v6.8.2.0/pathhierarchy-aggregation-6.8.2.0.zip |
346-
| 7.0.1 | 7.0.1.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.0.1.0/pathhierarchy-aggregation-7.0.1.0.zip |
347-
| 7.1.1 | 7.1.1.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.1.1.0/pathhierarchy-aggregation-7.1.1.0.zip |
348-
| 7.2.0 | 7.2.0.1 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.2.0.1/pathhierarchy-aggregation-7.2.0.1.zip |
349-
| 7.4.2 | 7.4.2.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.4.2.0/pathhierarchy-aggregation-7.4.2.0.zip |
350-
| 7.5.1 | 7.5.1.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.5.1.0/pathhierarchy-aggregation-7.5.1.0.zip |
351-
| 7.6.0 | 7.6.0.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.6.0.0/pathhierarchy-aggregation-7.6.0.0.zip |
352-
| 7.10.2 | 7.10.2.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.10.2.0/pathhierarchy-aggregation-7.10.2.0.zip |
353-
| 7.16.3 | 7.16.3.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.16.3.0/pathhierarchy-aggregation-7.16.3.0.zip |
354-
| 7.17.5 | 7.17.5.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.17.5.0/pathhierarchy-aggregation-7.17.5.0.zip |
355-
| 7.17.6 | 7.17.6.0 | https://github.com/opendatasoft/elasticsearch-aggregation-pathhierarchy/releases/download/v7.17.6.0/pathhierarchy-aggregation-7.17.6.0.zip |
356314

357315
License
358316
-------

0 commit comments

Comments
 (0)