Command ES !
curl -XPUT "http://localhost:9200/*/_settings" -d '{ "index" : {"number_of_replicas": 0 } }'
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
curl -XGET http://localhost:9200/_cat/shards
for shard in $(curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk '{print $2}'); do
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
"commands" : [ {
"allocate" : {
"index" : "NOM DE INDEX",
"shard" : $shard,
"node" : "NOM D'UN DES NODES DU CLUSTER",
"allow_primary" : true
}
}
]
}'
sleep 5
done
curl -XDELETE 'http://localhost:9200/twitter/'
curl -XGET 'http://localhost:9200/INDEX/_search?q=CHAMPS:'
network:
host: 0.0.0.0
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html
curl -XGET http://localhost:9200/inde/_xanalyze -d '{"text": "manageur"}'