@@ -32,24 +32,24 @@ The current installed version of `escli` can be shown using the `escli version`
32
32
``` bash
33
33
$ export ESCLI_CLOUD_ID=xxxx:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
34
34
$ export ESCLI_PASSWORD=XXXXXXXXXXXXXXXXXXXX
35
- $ escli search kibana_sample_data_flights -f github - i " FlightNum,OriginAirportID,DestAirportID" -n 15
36
- | FlightNum | DestAirportID | OriginAirportID |
37
- | ------------- | -----------------| ------------------- |
38
- | 9HY9SWR | SYD | FRA |
39
- | X98CCZO | VE05 | CPT |
40
- | UFK2WIZ | VE05 | VE05 |
41
- | EAYQW69 | TV01 | NA01 |
42
- | 58U013N | XIY | AICM |
43
- | XEJ78I2 | GE01 | CYEG |
44
- | EVARI8I | ZRH | ZRH |
45
- | 1IRBW25 | YOW | RM12 |
46
- | M05KE88 | HYD | MI11 |
47
- | SNI3M1Z | TV01 | SVO |
48
- | JQ2XXQ5 | HEL | ABQ |
49
- | V30ITD0 | VIE | VE05 |
50
- | P0WMFH7 | PVG | AICM |
51
- | VT9O2KD | YOW | NA01 |
52
- | NRHSVG8 | SJU | RM12 |
35
+ $ escli search kibana_sample_data_flights -i " FlightNum,OriginAirportID,DestAirportID" -n 15
36
+ FlightNum DestAirportID OriginAirportID
37
+ ----------- -- ------------- -----------------
38
+ B5PRMI8 ZRH ZRH
39
+ 0MWVVV8 MI12 BLR
40
+ OE6XDRI VIE XHBU
41
+ TWA3PWG SHA BO08
42
+ 0VH5EM7 HYD BOM
43
+ 0LT8Q4U WAW PEK
44
+ A8ZYYWS CTS YUL
45
+ HG5QDEY LHR IST
46
+ M21BD4I XIY HND
47
+ MKXCO04 MUC CJU
48
+ VDDH65N RM12 CTU
49
+ U90A6BX XHBU HEL
50
+ QY97TB0 VE05 MI11
51
+ U35KKLL RM12 CT03
52
+ DMYXR3E NRT UIO
53
53
```
54
54
55
55
@@ -265,3 +265,21 @@ INFO: [escli.commands.ingest] Ingested JSON data from file '<stdin>', line 5 wit
265
265
```
266
266
267
267
Note that ` -f ndjson ` is used for format selection for both the ` search ` and ` ingest ` processes.
268
+
269
+
270
+ ## Index Management
271
+
272
+ Indexes can be listed, created and deleted using the ` ls ` , ` mk ` , and ` rm ` commands respectively.
273
+ For App Search, this applies to engines rather than indexes.
274
+
275
+ The example below shows all three operations:
276
+
277
+ ``` bash
278
+ $ escli ls
279
+ kibana_sample_data_flights
280
+ $ escli mk my_index
281
+ $ escli ls
282
+ kibana_sample_data_flights
283
+ my_index
284
+ $ escli rm my_index
285
+ ```
0 commit comments