Skip to content

Instantly share code, notes, and snippets.

@jprante
Last active December 18, 2015 04:59
Show Gist options
  • Select an option

  • Save jprante/5729799 to your computer and use it in GitHub Desktop.

Select an option

Save jprante/5729799 to your computer and use it in GitHub Desktop.
Elasticsearch: how to update index cache filter settings dynamically
curl -XDELETE 'localhost:9200/test'
curl -XPUT 'localhost:9200/test'
curl -XPOST 'localhost:9200/test/_close'
curl -XPUT 'localhost:9200/test/_settings' -d '
{
"cache" : {
"filter" : {
"max_size": 100,
"expire" : "5m"
}
}
}
'
curl -XPOST 'localhost:9200/test/_open'
curl -XGET 'localhost:9200/test/_settings?pretty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment