44>>> uv run esrt es ping localhost:9200
55Ping ok
66{
7- "name": "WbKZGCh ",
7+ "name": "fekKj1S ",
88 "cluster_name": "elasticsearch",
9- "cluster_uuid": "Qe3Z5kUXTn6bneUVK4ncGQ ",
9+ "cluster_uuid": "86c1zW_bSue2XTIalGqXQQ ",
1010 "version": {
1111 "number": "5.6.9",
1212 "build_hash": "877a590",
@@ -21,9 +21,9 @@ Ping ok
2121Ping [{'host': 'localhost', 'port': 9200}]
2222Ping ok
2323{
24- "name": "WbKZGCh ",
24+ "name": "fekKj1S ",
2525 "cluster_name": "elasticsearch",
26- "cluster_uuid": "Qe3Z5kUXTn6bneUVK4ncGQ ",
26+ "cluster_uuid": "86c1zW_bSue2XTIalGqXQQ ",
2727 "version": {
2828 "number": "5.6.9",
2929 "build_hash": "877a590",
@@ -37,9 +37,9 @@ Ping ok
3737>>> uv run esrt es ping localhost:9200 -I
3838Ping ok
3939{
40- "name": "WbKZGCh ",
40+ "name": "fekKj1S ",
4141 "cluster_name": "elasticsearch",
42- "cluster_uuid": "Qe3Z5kUXTn6bneUVK4ncGQ ",
42+ "cluster_uuid": "86c1zW_bSue2XTIalGqXQQ ",
4343 "version": {
4444 "number": "5.6.9",
4545 "build_hash": "877a590",
@@ -54,9 +54,9 @@ Ping ok
5454
5555>>> uv run esrt es request localhost:9200
5656{
57- "name": "WbKZGCh ",
57+ "name": "fekKj1S ",
5858 "cluster_name": "elasticsearch",
59- "cluster_uuid": "Qe3Z5kUXTn6bneUVK4ncGQ ",
59+ "cluster_uuid": "86c1zW_bSue2XTIalGqXQQ ",
6060 "version": {
6161 "number": "5.6.9",
6262 "build_hash": "877a590",
@@ -71,11 +71,23 @@ Ping ok
7171true
7272
7373>>> uv run esrt es request localhost:9200 -v
74- EsRequestCmd(client=<EsClient([{'host': 'localhost', 'port': 9200}])>, verbose=True, ipython=False, output=<console width=227 None>, pretty=True, params={}, headers={}, input_=None, data=None, method='GET', url='/')
74+ EsRequestCmd(
75+ client=<EsClient([{'host': 'localhost', 'port': 9200}])>,
76+ verbose=True,
77+ ipython=False,
78+ output=<console width=156 None>,
79+ pretty=True,
80+ params={},
81+ headers={},
82+ input_=None,
83+ data=None,
84+ method='GET',
85+ url='/'
86+ )
7587{
76- "name": "WbKZGCh ",
88+ "name": "fekKj1S ",
7789 "cluster_name": "elasticsearch",
78- "cluster_uuid": "Qe3Z5kUXTn6bneUVK4ncGQ ",
90+ "cluster_uuid": "86c1zW_bSue2XTIalGqXQQ ",
7991 "version": {
8092 "number": "5.6.9",
8193 "build_hash": "877a590",
@@ -90,9 +102,9 @@ EsRequestCmd(client=<EsClient([{'host': 'localhost', 'port': 9200}])>, verbose=T
90102
91103>>> uv run esrt es request localhost:9200 -H a=1 -H b=false
92104{
93- "name": "WbKZGCh ",
105+ "name": "fekKj1S ",
94106 "cluster_name": "elasticsearch",
95- "cluster_uuid": "Qe3Z5kUXTn6bneUVK4ncGQ ",
107+ "cluster_uuid": "86c1zW_bSue2XTIalGqXQQ ",
96108 "version": {
97109 "number": "5.6.9",
98110 "build_hash": "877a590",
@@ -108,7 +120,7 @@ EsRequestCmd(
108120 client=<EsClient([{'host': 'localhost', 'port': 9200}])>,
109121 verbose=True,
110122 ipython=False,
111- output=<console width=227 None>,
123+ output=<console width=156 None>,
112124 pretty=True,
113125 params={'v': 'true', 's': 'index'},
114126 headers={},
@@ -128,12 +140,12 @@ health status index uuid pri rep docs.count docs.deleted store.size pri.store.si
128140}
129141
130142>>> uv run esrt es request localhost:9200 --url /_cat/indices
131- yellow open my-index FHb5ELDuTyWR1sOmHsAerQ 5 1 0 0 324b 324b
143+ yellow open my-index DEBkhVSxSJaBXx---Palmg 5 1 0 0 324b 324b
132144
133145
134146>>> uv run esrt es request localhost:9200 --url '/_cat/indices?v'
135147health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
136- yellow open my-index FHb5ELDuTyWR1sOmHsAerQ 5 1 0 0 324b 324b
148+ yellow open my-index DEBkhVSxSJaBXx---Palmg 5 1 0 0 324b 324b
137149
138150
139151>>> uv run esrt es request localhost:9200 --url '/_cat/indices?v&format=json'
@@ -142,7 +154,7 @@ yellow open my-index FHb5ELDuTyWR1sOmHsAerQ 5 1 0 0
142154 "health": "yellow",
143155 "status": "open",
144156 "index": "my-index",
145- "uuid": "FHb5ELDuTyWR1sOmHsAerQ ",
157+ "uuid": "DEBkhVSxSJaBXx---Palmg ",
146158 "pri": "5",
147159 "rep": "1",
148160 "docs.count": "0",
@@ -158,7 +170,7 @@ yellow open my-index FHb5ELDuTyWR1sOmHsAerQ 5 1 0 0
158170 "health": "yellow",
159171 "status": "open",
160172 "index": "my-index",
161- "uuid": "FHb5ELDuTyWR1sOmHsAerQ ",
173+ "uuid": "DEBkhVSxSJaBXx---Palmg ",
162174 "pri": "5",
163175 "rep": "1",
164176 "docs.count": "0",
@@ -206,7 +218,7 @@ yellow open my-index FHb5ELDuTyWR1sOmHsAerQ 5 1 0 0
206218>>> jq '.hits.hits[]' -c
207219
208220>>> uv run esrt es bulk localhost:9200 -y -f - -w examples.my-handlers:handle
209- ⠹ bulk ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ? 0:00:00 3/?
221+ ⠙ bulk ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ? 0:00:00 3/?
210222
211223>>> uv run esrt es bulk localhost:9200 -y -f examples/bulk.ndjson
212224⠋ bulk ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ? 0:00:00 4/?
@@ -217,15 +229,15 @@ EsBulkCmd(
217229 verbose=True,
218230 ipython=False,
219231 dry_run=False,
220- output=<console width=227 None>,
232+ output=<console width=156 None>,
221233 yes=True,
222234 pretty=False,
223235 input_=<_io.TextIOWrapper name='examples/bulk.ndjson' mode='r' encoding='UTF-8'>,
224236 data=None,
225237 index=None,
226238 params={},
227239 doc_type=None,
228- handler=<function handle at 0x1039ac700 >,
240+ handler=<function handle at 0x1038c2790 >,
229241 chunk_size=2000,
230242 max_chunk_bytes=104857600,
231243 raise_on_error=False,
@@ -298,7 +310,7 @@ Dry run end
298310>>> jq '.hits.hits[]' -c
299311{"_index":"my-index-2","_type":"type1","_id":"2","_score":1.0,"_source":{"field1":"22"}}
300312{"_index":"new-my-index-2","_type":"type1","_id":"2","_score":1.0,"_source":{"field1":"22"}}
301- {"_index":"my-index","_type":"type1","_id":"1","_score":1.0,"_source":{"field1":"cc","field2":"uu" }}
313+ {"_index":"my-index","_type":"type1","_id":"1","_score":1.0,"_source":{"field1":"cc"}}
302314{"_index":"my-index-2","_type":"type1","_id":"1","_score":1.0,"_source":{"field1":"11"}}
303315{"_index":"my-index-i","_type":"type1","_id":"1","_score":1.0,"_source":{"field1":"ii"}}
304316{"_index":"new-my-index-2","_type":"type1","_id":"1","_score":1.0,"_source":{"field1":"11"}}
@@ -352,10 +364,21 @@ Dry run end
352364{"_index":"new-my-index-2","_type":"type1","_id":"3","_score":1.0,"_source":{"field1":"33"}}
353365
354366>>> uv run esrt es search localhost:9200 -v
355- EsSearchCmd(client=<EsClient([{'host': 'localhost', 'port': 9200}])>, verbose=True, ipython=False, output=<console width=227 None>, pretty=True, input_=None, data=None, index=None, params={}, doc_type=None)
367+ EsSearchCmd(
368+ client=<EsClient([{'host': 'localhost', 'port': 9200}])>,
369+ verbose=True,
370+ ipython=False,
371+ output=<console width=156 None>,
372+ pretty=True,
373+ input_=None,
374+ data=None,
375+ index=None,
376+ params={},
377+ doc_type=None
378+ )
356379>null
357380<{
358- "took": 8 ,
381+ "took": 24 ,
359382 "timed_out": false,
360383 "_shards": {
361384 "total": 20,
@@ -447,11 +470,11 @@ EsSearchCmd(client=<EsClient([{'host': 'localhost', 'port': 9200}])>, verbose=Tr
447470>>> uv run esrt es search localhost:9200 -o _.test.log
448471
449472>>> uv run esrt es search localhost:9200 --no-pretty
450- {"took": 6 , "timed_out": false, "_shards": {"total": 20, "successful": 20, "skipped": 0, "failed": 0}, "hits": {"total": 8, "max_score": 1.0, "hits": [{"_index": "my-index-2", "_type": "type1", "_id": "2", "_score": 1.0, "_source": {"field1": "22"}}, {"_index": "new-my-index-2", "_type": "type1", "_id": "2", "_score": 1.0, "_source": {"field1": "22"}}, {"_index": "my-index", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "cc", "field2": "uu"}}, {"_index": "my-index-2", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "11"}}, {"_index": "my-index-i", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "ii"}}, {"_index": "new-my-index-2", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "11"}}, {"_index": "my-index-2", "_type": "type1", "_id": "3", "_score": 1.0, "_source": {"field1": "33"}}, {"_index": "new-my-index-2", "_type": "type1", "_id": "3", "_score": 1.0, "_source": {"field1": "33"}}]}}
473+ {"took": 14 , "timed_out": false, "_shards": {"total": 20, "successful": 20, "skipped": 0, "failed": 0}, "hits": {"total": 8, "max_score": 1.0, "hits": [{"_index": "my-index-2", "_type": "type1", "_id": "2", "_score": 1.0, "_source": {"field1": "22"}}, {"_index": "new-my-index-2", "_type": "type1", "_id": "2", "_score": 1.0, "_source": {"field1": "22"}}, {"_index": "my-index", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "cc", "field2": "uu"}}, {"_index": "my-index-2", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "11"}}, {"_index": "my-index-i", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "ii"}}, {"_index": "new-my-index-2", "_type": "type1", "_id": "1", "_score": 1.0, "_source": {"field1": "11"}}, {"_index": "my-index-2", "_type": "type1", "_id": "3", "_score": 1.0, "_source": {"field1": "33"}}, {"_index": "new-my-index-2", "_type": "type1", "_id": "3", "_score": 1.0, "_source": {"field1": "33"}}]}}
451474
452475>>> uv run esrt es search localhost:9200 -i my-index
453476{
454- "took": 4 ,
477+ "took": 10 ,
455478 "timed_out": false,
456479 "_shards": {
457480 "total": 5,
@@ -479,7 +502,7 @@ EsSearchCmd(client=<EsClient([{'host': 'localhost', 'port': 9200}])>, verbose=Tr
479502
480503>>> uv run esrt es search localhost:9200 -p from=1
481504{
482- "took": 10 ,
505+ "took": 33 ,
483506 "timed_out": false,
484507 "_shards": {
485508 "total": 20,
@@ -561,7 +584,7 @@ EsSearchCmd(client=<EsClient([{'host': 'localhost', 'port': 9200}])>, verbose=Tr
561584
562585>>> uv run esrt es search localhost:9200 --doc_type type1
563586{
564- "took": 27 ,
587+ "took": 56 ,
565588 "timed_out": false,
566589 "_shards": {
567590 "total": 20,
@@ -700,7 +723,7 @@ EsScanCmd(
700723 verbose=True,
701724 ipython=False,
702725 dry_run=False,
703- output=<console width=227 None>,
726+ output=<console width=156 None>,
704727 yes=True,
705728 pretty=False,
706729 input_=None,
@@ -719,7 +742,7 @@ EsScanCmd(
719742 verbose=True,
720743 ipython=False,
721744 dry_run=False,
722- output=<console width=227 None>,
745+ output=<console width=156 None>,
723746 yes=True,
724747 pretty=False,
725748 input_=None,
0 commit comments