Skip to content

Instantly share code, notes, and snippets.

@arc279
Last active March 30, 2018 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arc279/36535d8c2fa2dd3a429e4441cf58fb0d to your computer and use it in GitHub Desktop.
Save arc279/36535d8c2fa2dd3a429e4441cf58fb0d to your computer and use it in GitHub Desktop.
livedoor グルメの研究用データセット の中の ratings.csv から、Elasticsearchで簡単なアナライザを設定して、ユーザレビューを検索できるようにするところまで。
version: '2.2'
services:
elasticsearch:
build: ./
environment:
- cluster.name=dev-cluster
- node.name=dev
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ./volumes/esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana:6.2.1
links:
- elasticsearch:elasticsearch
ports:
- 5601:5601
FROM docker.elastic.co/elasticsearch/elasticsearch:6.2.1
LABEL maintainer "kuryu <revision279@gmail.com>"
RUN elasticsearch-plugin install analysis-icu
RUN elasticsearch-plugin install analysis-kuromoji
RUN elasticsearch-plugin install ingest-attachment
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment