- Beginning

https://www.compose.com/articles/getting-started-with-elasticsearch-and-node/

- Usage

  • Tải elasticsearch trong docker
docker pull elasticsearch:5.3.1-alpine
  • Cài elasticsearch vào container (Chú ý port trước name)
docker run -d -p 9200:9200 --name elas elasticsearch:5.3.1-alpine -Ediscovery.zen.minimum_master_nodes=1
    docker exec -it elas /bin/sh
  • Vào được container "elas" rồi Chạy lệnh:
bin/elasticsearch-plugin install x-pack
  • Chạy xong thì có thể chạy được
http://localhost:9200/

TÌm tất cả index name

curl -XGET http://10.240.0.13:9200/_cat/indices?v

Set giới hạn

curl -XPUT 10.240.0.13:9200/<index name>/_settings -d '{ "index" : { "max_result_window" : 100000 } }'

results matching ""

    No results matching ""