Hi Arjit

When you set it via the config file, it isn't included in the output of GET
/_settings, but is is being honoured.

That said, I much prefer using the API for these things instead of setting
them in the config file

clint


On 24 April 2014 14:27, Kartavya <[email protected]> wrote:

> You can check your such global configurations here
>
> curl -XGET 'localhost:9200/_nodes?pretty=true
>
> Thanks,
> Pulkit
>
> On Friday, 19 July 2013 10:23:44 UTC, Arjit Gupta wrote:
>>
>> Hi,
>>
>> We have made an entry in elasticsearch.yml for refresh_interval as
>> *index.refresh_interval: 1s*
>>
>> But its not honouring the setting .
>>
>> When I get setting to cluster to it.
>>
>> curl -XGET 'http://localhost:9200/test/_settings?pretty=true'
>> {
>>   "test" : {
>>     "settings" : {
>>       "index.analysis.analyzer.my_analyzer.tokenizer" : "keyword",
>>       "index.analysis.analyzer.my_analyzer.filter" : "lowercase",
>>       "index.number_of_shards" : "5",
>>       "index.number_of_replicas" : "2",
>>       "index.version.created" : "900199",
>>     }
>>   }
>> }
>>
>> But when make a rest call
>>
>> curl -XPUT 'http://localhost:9200/*/_settings' -d '{"index" :
>> {"refresh_interval" : "1s"}}'
>>
>> curl -XGET 'http://localhost:9200/test/_settings?pretty=true'
>> {
>>   "test" : {
>>     "settings" : {
>>       "index.analysis.analyzer.my_analyzer.tokenizer" : "keyword",
>>       "index.analysis.analyzer.my_analyzer.filter" : "lowercase",
>>       "index.number_of_shards" : "5",
>>       "index.number_of_replicas" : "2",
>>       "index.version.created" : "900199",
>>       "index.refresh_interval" : "1s"
>>     }
>>   }
>> }
>>
>> Thanks,
>> Arjit
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to