Init: sudo systemctl start elasticsearch.service
Test: curl GET "localhost:9200"
Test: curl -X GET "http://localhost:9200/?pretty"
Read clusters: curl -XGET 'http://localhost:9200/_cluster/state?pretty'
Note: Remember to be root to explore directories: toherwise, they appears void
curl -X POST localhost:9200/twitter/_search?q=username:eriky
~1
for accept syntax errors curl -X POST http://localhost:9200/twitter/_search?q=Elastcsearch~1&pretty
All: POST /_all/_search
GET /_all/_search?q=city:paprola
: All indices with city paprola
indices: POST /index1,index2,index3/_search
POST /school*,-schools_gov /_search
: starting with school without schools_gov
avril 20 17:37:07 tourny elasticsearch[10763]: ERROR: [1] bootstrap checks failed
avril 20 17:37:07 tourny elasticsearch[10763]: [1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.se
sudoedit /etc/elasticsearch/elasticsearch.yml
node.data : true
network.host : 0.0.0.0
discovery.seed_hosts : []
cluster.initial_master_nodes : []