opensearch-project / opensearch-java

Java Client for OpenSearch
Apache License 2.0
106 stars 169 forks source link

Add mappings and settings with json #985

Open JM-Lab opened 1 month ago

JM-Lab commented 1 month ago

Description

This PR adds functionality to use JSON for mappings and settings in CreateIndexRequest. This makes it easier for developers to create indices.

Issues Resolved

Fixes #302

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

reta commented 1 month ago

Please refer to https://github.com/opensearch-project/opensearch-java/issues/257 , the client would benefit from generalized approach.