You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create an Index Template via the SDK. As I can't find any documentation about, how do I use the method - the main question is: How must the parameter array be structured? Using the structure as of https://opensearch.org/docs/latest/im-plugin/index-templates/
as "body", i am getting always the error "No alive nodes found in your cluster". While creating an Index works.
A little documentation about would be very nice. And i hope somebody maybe has an example how to structure. This is my current structure (properties are added dynamically):
Hi there,
I am trying to create an Index Template via the SDK. As I can't find any documentation about, how do I use the method - the main question is: How must the parameter array be structured? Using the structure as of
https://opensearch.org/docs/latest/im-plugin/index-templates/
as "body", i am getting always the error "No alive nodes found in your cluster". While creating an Index works.
A little documentation about would be very nice. And i hope somebody maybe has an example how to structure. This is my current structure (properties are added dynamically):
$indexTemplate = [ 'name' => 'Index Template', 'body' => [ 'index_patterns' => [ 'entity-v1-*' ], 'template' => [ 'settings' => [ 'number_of_shards' => $openSearchConfig['number_of_shards'], 'number_of_replicas' => $openSearchConfig['number_of_replicas'] ], 'mappings' => [ 'properties' => [] ] ], 'priority' => 200, 'version' => 1, '_meta' => [ 'description' => 'My Fancy Template.' ] ] ];
I also tried some ways I found for ElasticSearch - without any success. Would be great to get some unterstandings :)
Thanks in advance!
The text was updated successfully, but these errors were encountered: