You can check the settings of the index to get current value of refresh_interval
:
curl -X GET 'localhost:9200/index_name/_settings'
NOTE: If refresh_interval
is not manually set (set to default value of 1 second), it will not show any field named refresh_interval
.
If it is manually set to a value (either -1, or 1s, or any other value), it will show a field named refresh_interval
with corresponding value:
{
"index_name": {
"settings": {
"index": {
"refresh_interval": "-1",
"number_of_shards": "1",
"provided_name": "index_name",
"creation_date": "1532100398178",
"number_of_replicas": "0",
"uuid": "b-O02mUlS2aIZ-ahaEBvmQ",
"version": {
"created": "5060599"
}
}
}
}
}