勉強日記

チラ裏

Elasticsearch

Elasticsearchチュートリアル -- 集計

Analyze results with aggregations www.elastic.co キーワードで集計 curl -XGET 'localhost:9200/bank/_search?pretty' -H 'Content-Type: application/json' -d '{ "size": 0, "aggs": { "group_by_state": { "terms": { "field": "state.keyword" } } } …

Elasticsearchチュートリアル -- 起動~データ投入~クエリまで

www.elastic.co 起動 docker container run --rm -d \ --health-cmd='curl localhost:9200/_health' \ --health-interval=5s \ -p 9200:9200 -p 9300:9300 \ -e "discovery.type=single-node" \ docker.elastic.co/elasticsearch/elasticsearch:7.6.2 さいき…