@@ -266,6 +266,7 @@ async def close(self):
266
266
async def ping (self , params = None , headers = None ):
267
267
"""
268
268
Returns whether the cluster is running.
269
+
269
270
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index.html>`_
270
271
"""
271
272
try :
@@ -279,6 +280,7 @@ async def ping(self, params=None, headers=None):
279
280
async def info (self , params = None , headers = None ):
280
281
"""
281
282
Returns basic information about the cluster.
283
+
282
284
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index.html>`_
283
285
"""
284
286
return await self .transport .perform_request (
@@ -298,6 +300,7 @@ async def create(self, index, id, body, doc_type=None, params=None, headers=None
298
300
"""
299
301
Creates a new document in the index. Returns a 409 response when a document
300
302
with a same ID already exists in the index.
303
+
301
304
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-index_.html>`_
302
305
303
306
:arg index: The name of the index
@@ -352,6 +355,7 @@ async def index(
352
355
):
353
356
"""
354
357
Creates or updates a document in an index.
358
+
355
359
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-index_.html>`_
356
360
357
361
:arg index: The name of the index
@@ -415,6 +419,7 @@ async def index(
415
419
async def bulk (self , body , index = None , doc_type = None , params = None , headers = None ):
416
420
"""
417
421
Allows to perform multiple index/update/delete operations in a single request.
422
+
418
423
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-bulk.html>`_
419
424
420
425
:arg body: The operation definition and data (action-data
@@ -461,6 +466,7 @@ async def bulk(self, body, index=None, doc_type=None, params=None, headers=None)
461
466
async def clear_scroll (self , body = None , scroll_id = None , params = None , headers = None ):
462
467
"""
463
468
Explicitly clears the search context for a scroll.
469
+
464
470
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/clear-scroll-api.html>`_
465
471
466
472
:arg body: A comma-separated list of scroll IDs to clear if none
@@ -499,6 +505,7 @@ async def count(
499
505
):
500
506
"""
501
507
Returns number of documents matching a query.
508
+
502
509
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-count.html>`_
503
510
504
511
:arg body: A query to restrict the results specified with the
@@ -556,6 +563,7 @@ async def count(
556
563
async def delete (self , index , id , doc_type = None , params = None , headers = None ):
557
564
"""
558
565
Removes a document from the index.
566
+
559
567
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-delete.html>`_
560
568
561
569
:arg index: The name of the index
@@ -633,6 +641,7 @@ async def delete_by_query(
633
641
):
634
642
"""
635
643
Deletes documents matching the provided query.
644
+
636
645
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-delete-by-query.html>`_
637
646
638
647
:arg index: A comma-separated list of index names to search; use
@@ -729,6 +738,7 @@ async def delete_by_query_rethrottle(self, task_id, params=None, headers=None):
729
738
"""
730
739
Changes the number of requests per second for a particular Delete By Query
731
740
operation.
741
+
732
742
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-delete-by-query.html>`_
733
743
734
744
:arg task_id: The task id to rethrottle
@@ -749,6 +759,7 @@ async def delete_by_query_rethrottle(self, task_id, params=None, headers=None):
749
759
async def delete_script (self , id , params = None , headers = None ):
750
760
"""
751
761
Deletes a script.
762
+
752
763
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/modules-scripting.html>`_
753
764
754
765
:arg id: Script ID
@@ -777,6 +788,7 @@ async def delete_script(self, id, params=None, headers=None):
777
788
async def exists (self , index , id , doc_type = None , params = None , headers = None ):
778
789
"""
779
790
Returns information about whether a document exists in an index.
791
+
780
792
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-get.html>`_
781
793
782
794
:arg index: The name of the index
@@ -827,6 +839,7 @@ async def exists(self, index, id, doc_type=None, params=None, headers=None):
827
839
async def exists_source (self , index , id , doc_type = None , params = None , headers = None ):
828
840
"""
829
841
Returns information about whether a document source exists in an index.
842
+
830
843
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-get.html>`_
831
844
832
845
:arg index: The name of the index
@@ -882,6 +895,7 @@ async def explain(
882
895
):
883
896
"""
884
897
Returns information about why a specific matches (or doesn't match) a query.
898
+
885
899
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-explain.html>`_
886
900
887
901
:arg index: The name of the index
@@ -934,6 +948,7 @@ async def field_caps(self, body=None, index=None, params=None, headers=None):
934
948
"""
935
949
Returns the information about the capabilities of fields among multiple
936
950
indices.
951
+
937
952
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-field-caps.html>`_
938
953
939
954
:arg body: An index filter specified with the Query DSL
@@ -974,6 +989,7 @@ async def field_caps(self, body=None, index=None, params=None, headers=None):
974
989
async def get (self , index , id , doc_type = None , params = None , headers = None ):
975
990
"""
976
991
Returns a document.
992
+
977
993
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-get.html>`_
978
994
979
995
:arg index: The name of the index
@@ -1014,6 +1030,7 @@ async def get(self, index, id, doc_type=None, params=None, headers=None):
1014
1030
async def get_script (self , id , params = None , headers = None ):
1015
1031
"""
1016
1032
Returns a script.
1033
+
1017
1034
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/modules-scripting.html>`_
1018
1035
1019
1036
:arg id: Script ID
@@ -1040,6 +1057,7 @@ async def get_script(self, id, params=None, headers=None):
1040
1057
async def get_source (self , index , id , doc_type = None , params = None , headers = None ):
1041
1058
"""
1042
1059
Returns the source of a document.
1060
+
1043
1061
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-get.html>`_
1044
1062
1045
1063
:arg index: The name of the index
@@ -1089,6 +1107,7 @@ async def get_source(self, index, id, doc_type=None, params=None, headers=None):
1089
1107
async def mget (self , body , index = None , doc_type = None , params = None , headers = None ):
1090
1108
"""
1091
1109
Allows to get multiple documents in one request.
1110
+
1092
1111
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-multi-get.html>`_
1093
1112
1094
1113
:arg body: Document identifiers; can be either `docs`
@@ -1135,6 +1154,7 @@ async def mget(self, body, index=None, doc_type=None, params=None, headers=None)
1135
1154
async def msearch (self , body , index = None , doc_type = None , params = None , headers = None ):
1136
1155
"""
1137
1156
Allows to execute several search operations in one request.
1157
+
1138
1158
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-multi-search.html>`_
1139
1159
1140
1160
:arg body: The request definitions (metadata-search request
@@ -1191,6 +1211,7 @@ async def msearch_template(
1191
1211
):
1192
1212
"""
1193
1213
Allows to execute several search template operations in one request.
1214
+
1194
1215
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-multi-search.html>`_
1195
1216
1196
1217
:arg body: The request definitions (metadata-search request
@@ -1243,6 +1264,7 @@ async def mtermvectors(
1243
1264
):
1244
1265
"""
1245
1266
Returns multiple termvectors in one request.
1267
+
1246
1268
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-multi-termvectors.html>`_
1247
1269
1248
1270
:arg body: Define ids, documents, parameters or a list of
@@ -1295,6 +1317,7 @@ async def mtermvectors(
1295
1317
async def put_script (self , id , body , context = None , params = None , headers = None ):
1296
1318
"""
1297
1319
Creates or updates a script.
1320
+
1298
1321
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/modules-scripting.html>`_
1299
1322
1300
1323
:arg id: Script ID
@@ -1322,6 +1345,7 @@ async def rank_eval(self, body, index=None, params=None, headers=None):
1322
1345
"""
1323
1346
Allows to evaluate the quality of ranked search results over a set of typical
1324
1347
search queries
1348
+
1325
1349
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-rank-eval.html>`_
1326
1350
1327
1351
:arg body: The ranking evaluation search definition, including
@@ -1365,6 +1389,7 @@ async def reindex(self, body, params=None, headers=None):
1365
1389
Allows to copy documents from one index to another, optionally filtering the
1366
1390
source documents by a query, changing the destination index settings, or
1367
1391
fetching the documents from a remote cluster.
1392
+
1368
1393
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html>`_
1369
1394
1370
1395
:arg body: The search definition using the Query DSL and the
@@ -1400,6 +1425,7 @@ async def reindex(self, body, params=None, headers=None):
1400
1425
async def reindex_rethrottle (self , task_id , params = None , headers = None ):
1401
1426
"""
1402
1427
Changes the number of requests per second for a particular Reindex operation.
1428
+
1403
1429
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html>`_
1404
1430
1405
1431
:arg task_id: The task id to rethrottle
@@ -1422,6 +1448,7 @@ async def render_search_template(
1422
1448
):
1423
1449
"""
1424
1450
Allows to use the Mustache language to pre-render a search definition.
1451
+
1425
1452
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-template.html#_validating_templates>`_
1426
1453
1427
1454
:arg body: The search definition template and its params
@@ -1439,6 +1466,7 @@ async def render_search_template(
1439
1466
async def scripts_painless_execute (self , body = None , params = None , headers = None ):
1440
1467
"""
1441
1468
Allows an arbitrary script to be executed and a result to be returned
1469
+
1442
1470
`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html>`_
1443
1471
1444
1472
:arg body: The script to execute
@@ -1455,6 +1483,7 @@ async def scripts_painless_execute(self, body=None, params=None, headers=None):
1455
1483
async def scroll (self , body = None , scroll_id = None , params = None , headers = None ):
1456
1484
"""
1457
1485
Allows to retrieve a large numbers of results from a single search request.
1486
+
1458
1487
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-request-body.html#request-body-search-scroll>`_
1459
1488
1460
1489
:arg body: The scroll ID if not passed by URL or query
@@ -1525,6 +1554,7 @@ async def search(
1525
1554
):
1526
1555
"""
1527
1556
Returns results matching a query.
1557
+
1528
1558
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-search.html>`_
1529
1559
1530
1560
:arg body: The search definition using the Query DSL
@@ -1647,6 +1677,7 @@ async def search_shards(self, index=None, params=None, headers=None):
1647
1677
"""
1648
1678
Returns information about the indices and shards that a search request would be
1649
1679
executed against.
1680
+
1650
1681
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-shards.html>`_
1651
1682
1652
1683
:arg index: A comma-separated list of index names to search; use
@@ -1689,6 +1720,7 @@ async def search_template(
1689
1720
):
1690
1721
"""
1691
1722
Allows to use the Mustache language to pre-render a search definition.
1723
+
1692
1724
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/search-template.html>`_
1693
1725
1694
1726
:arg body: The search definition template and its params
@@ -1755,6 +1787,7 @@ async def termvectors(
1755
1787
"""
1756
1788
Returns information and statistics about terms in the fields of a particular
1757
1789
document.
1790
+
1758
1791
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-termvectors.html>`_
1759
1792
1760
1793
:arg index: The index in which the document resides.
@@ -1813,6 +1846,7 @@ async def termvectors(
1813
1846
async def update (self , index , id , body , doc_type = None , params = None , headers = None ):
1814
1847
"""
1815
1848
Updates a document with a script or partial document.
1849
+
1816
1850
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-update.html>`_
1817
1851
1818
1852
:arg index: The name of the index
@@ -1905,6 +1939,7 @@ async def update_by_query(
1905
1939
"""
1906
1940
Performs an update on every document in the index without changing the source,
1907
1941
for example to pick up a mapping change.
1942
+
1908
1943
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-update-by-query.html>`_
1909
1944
1910
1945
:arg index: A comma-separated list of index names to search; use
@@ -2004,6 +2039,7 @@ async def update_by_query_rethrottle(self, task_id, params=None, headers=None):
2004
2039
"""
2005
2040
Changes the number of requests per second for a particular Update By Query
2006
2041
operation.
2042
+
2007
2043
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-update-by-query.html>`_
2008
2044
2009
2045
:arg task_id: The task id to rethrottle
@@ -2024,6 +2060,7 @@ async def update_by_query_rethrottle(self, task_id, params=None, headers=None):
2024
2060
async def get_script_context (self , params = None , headers = None ):
2025
2061
"""
2026
2062
Returns all script contexts.
2063
+
2027
2064
`<https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html>`_
2028
2065
"""
2029
2066
return await self .transport .perform_request (
@@ -2034,6 +2071,7 @@ async def get_script_context(self, params=None, headers=None):
2034
2071
async def get_script_languages (self , params = None , headers = None ):
2035
2072
"""
2036
2073
Returns available script types, languages and contexts
2074
+
2037
2075
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/modules-scripting.html>`_
2038
2076
"""
2039
2077
return await self .transport .perform_request (
@@ -2044,6 +2082,7 @@ async def get_script_languages(self, params=None, headers=None):
2044
2082
async def close_point_in_time (self , body = None , params = None , headers = None ):
2045
2083
"""
2046
2084
Close a point in time
2085
+
2047
2086
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/point-in-time-api.html>`_
2048
2087
2049
2088
:arg body: a point-in-time id to close
@@ -2058,6 +2097,7 @@ async def close_point_in_time(self, body=None, params=None, headers=None):
2058
2097
async def open_point_in_time (self , index = None , params = None , headers = None ):
2059
2098
"""
2060
2099
Open a point in time that can be used in subsequent searches
2100
+
2061
2101
`<https://www.elastic.co/guide/en/elasticsearch/reference/7.10/point-in-time-api.html>`_
2062
2102
2063
2103
:arg index: A comma-separated list of index names to open point
0 commit comments