Search code examples
elasticsearchopensearch

OpenSearch settings value in milliseconds


I'm trying to update OpenSearch's index settings field with milliseconds value.

The example that I found is in seconds.

Can someone assist me on how can I set the value in milliseconds?

PUT /my_index/_settings
{
    "index" : {
        "refresh_interval" : "30s"
    }
}

Solution

  • Supply ms unit value.

    Documnetaion https://opensearch.org/docs/latest/opensearch/units/