Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Each squirro project by default corresponding to an index and have the format: squirro_{template-version}_{lowercase-project-id}, e.g: squirro_v8v9_36syha3_ss-zwvn9gyk1ww 

Code Block
languagebash
curl 'http://localhost:9200/_cat/indices?v'

...

Tip: You can use wildcard syntax * in index_name, e.g /squirro_v8v9_*/

View mapping, setting of given index

...

Code Block
languagebash
curl -XGET 'http://localhost:9200/_template/squirro_v8v9?pretty' | grep number_of_replicas

If number_of_replicas > 0 then modify squirro_v8v9.json and put this template again

Code Block
languagebash
vi /etc/elasticsearch/templates/squirro_v8v9.json 
# edit the line "number_of_replicas": ...,
bash /etc/elasticsearch/templates/ensure_templates.sh

...