Closed saimedhi closed 1 year ago
Related to #477
search_params = {
"min_compatible_shard_node": 5
}
# search for all documents in the 'movies' index
response = client.search(index='movies', params=search_params)
# extract the count of hits from the response
hits_count = response['hits']['total']['value']
# print the count of hits
print("Total Hits: ", hits_count)
RequestError: RequestError(400, 'illegal_argument_exception', 'request [/movies/_search] contains unrecognized parameter: [min_compatible_shard_node]')
update_by_query_params = {
"version_type": 1
}
# search for all documents in the 'movies' index
response = client.update_by_query(index='movies', params=update_by_query_params)
# print the response
print("Response: ", response)
RequestError: RequestError(400, 'illegal_argument_exception', 'request [/movies/_update_by_query] contains unrecognized parameter: [version_type]')
create_point_in_time_params = {
"ignore_unavailable": "true",
"keep_alive": "1m"
}
# create a point-in-time snapshot for the 'movies' index
response = client.create_point_in_time(index='movies', params=create_point_in_time_params)
# print the response
print("Response: ", response)
Response: {'pit_id': '88j_QAEGbW92aWVzFnFhaEJ1TVNVU2o2TmI2OW9XOTBRV3cAFjk5NWJ4MFdaUjJPcjRJNUMwTkhBVFEAAAAAAAAAABsWZzNfS0lrcEpTRnFKalJYN2xBX0dhQQEWcWFoQnVNU1VTajZOYjY5b1c5MFFXdwAA', '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'creation_time': 1694550942842}
create_point_in_time_params = {
"allow_partial_pit_creation": "true",
"keep_alive": "1m"
}
# create a point-in-time snapshot for the 'movies' index
response = client.create_point_in_time(index='movies', params=create_point_in_time_params)
# print the response
print("Response: ", response)
Response: {'pit_id': '88j_QAEGbW92aWVzFnFhaEJ1TVNVU2o2TmI2OW9XOTBRV3cAFjk5NWJ4MFdaUjJPcjRJNUMwTkhBVFEAAAAAAAAAAB8WZzNfS0lrcEpTRnFKalJYN2xBX0dhQQEWcWFoQnVNU1VTajZOYjY5b1c5MFFXdwAA', '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'creation_time': 1694552239653}
get https://localhost:9200/_cat/cluster_manager?cluster_manager='60'
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cat/cluster_manager] contains unrecognized parameter: [cluster_manager] -> did you mean [cluster_manager_timeout]?"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cat/cluster_manager] contains unrecognized parameter: [cluster_manager] -> did you mean [cluster_manager_timeout]?"
},
"status": 400
}
get https://localhost:9200/_cat/cluster_manager?master_timeout=60ms
success
get https://localhost:9200/_cat/nodes?include_unloaded_segments=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cat/nodes] contains unrecognized parameter: [include_unloaded_segments]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cat/nodes] contains unrecognized parameter: [include_unloaded_segments]"
},
"status": 400
}
get https://localhost:9200/_cat/segments?master_timeout=10ms
success
get https://localhost:9200/_cat/segments?cluster_manager_timeout=10ms
success
get https://localhost:9200/_cat/plugins?include_bootstrap=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cat/plugins] contains unrecognized parameter: [include_bootstrap]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cat/plugins] contains unrecognized parameter: [include_bootstrap]"
},
"status": 400
}
https://localhost:9200/_cluster/health?ensure_node_commissioned=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_cluster/health] contains unrecognized parameter: [ensure_node_commissioned] -> did you mean [ensure_node_weighed_in]?"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_cluster/health] contains unrecognized parameter: [ensure_node_commissioned] -> did you mean [ensure_node_weighed_in]?"
},
"status": 400
}
post https://localhost:9200/movies/_open?cluster_manager_timeout=100ms
{ "acknowledged": true, "shards_acknowledged": true }
DELETE https://localhost:9200/movies/?cluster_manager_timeout=100ms
{
"acknowledged": true
}
get https://localhost:9200/_stats/_all?include_unloaded_segments=true
success
delete https://localhost:9200/_data_stream/*?expand_wildcards=open
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
},
"status": 400
}
get https://localhost:9200/_data_stream/*?expand_wildcards=open
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_data_stream/] contains unrecognized parameter: [expand_wildcards]"
},
"status": 400
}
put https://localhost:9200/_ingest/pipeline/pipelineid123
{
"description": "This pipeline processes student data",
"processors": [
{
"set": {
"description": "Sets the graduation year to 2023",
"field": "grad_year",
"value": 2023
}
},
{
"set": {
"description": "Sets graduated to true",
"field": "graduated",
"value": true
}
},
{
"uppercase": {
"field": "name"
}
}
]
}
{ "acknowledged": true }
get https://localhost:9200/_ingest/pipeline/pipelineid123?summary=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_ingest/pipeline/pipelineid123] contains unrecognized parameter: [summary]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_ingest/pipeline/pipelineid123] contains unrecognized parameter: [summary]"
},
"status": 400
}
get https://localhost:9200/_nodes/stats?include_unloaded_segments=true
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
}
],
"type": "illegal_argument_exception",
"reason": "request [/_nodes/stats] contains unrecognized parameter: [include_unloaded_segments]"
},
"status": 400
}
Take a look at issue #476 for more clarity.
Async/init delete_point_in_time
existing:
generated:
Async/nodes hot_threads path difference
existing:
generated:
Tasks and dangling_indices APIs have no differences b/w existing and generated modules