Skip to content

dileep-gadiraju/elastic-search-training

Repository files navigation

Software Pre-Requisites

ElasticSearch , Kibana are deployed as Docker containers.

  1. Docker.

Install Elastic Search (as Docker Container)

Refer: https://www.elastic.co/guide/en/kibana/current/docker.html

  1. Run docker network create elastic to create docker network. This is one time setup step.
  2. Run docker pull docker.elastic.co/elasticsearch/elasticsearch:7.17.0 to pull elastic search docker image.
  3. Run docker run --name es01-test --net elastic -p 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.17.0 to run elastic search docker continer in single node mode. If container with same name already exists , Run docker rm es01-test first.
  4. If container succesfully starts , you should be able to access http://localhost:9200/

Install Kibana(as Docker Container)

  1. Run docker pull docker.elastic.co/kibana/kibana:7.17.0 to pull kibana docker image.
  2. Run docker run --name kib01-test --net elastic -p 127.0.0.1:5601:5601 -e "ELASTICSEARCH_HOSTS=http://es01-test:9200" docker.elastic.co/kibana/kibana:7.17.0 to run kibana docker container. If container with same name already exists , Run docker rm kib01-test first.
  3. If container succesfully starts , you should be able to access http://localhost:5601/

Explore ElasticSearch with Netflix,nyc-restaurants and other mock datasets.

  1. Refer netflix_titles.csv. Source : https://www.kaggle.com/shivamb/netflix-shows.
  2. Navigate to Kibana Dashboard Home page
  3. Choose Upload a file option link to upload netflix_titles.csv file and Import the data as Index 'netflix'.
  4. Navigate to Kibana dashboard DevTools page.
  5. Also explore nyc-restaurants.csv. This dataset is used in below hands on examples. Please import this data also as nyc-restaurants index.
  6. After importing above datasets , open Elastic Search Discover and select index you want to discover. Right side of Search box , you can choose Syntax options between KQL and Lucene for search.
  7. Refer BasicQueries and try in Kibana dashboard DevTools.
  8. Refer AggregationQueries for Aggregation queries.
  9. Refer GeoQueries for Geo Queries.
  10. Refer Analyzers
  11. Refer Routing. for Routing.
  12. Refer OtherAPIs.
  13. Refer DataStreams.
  14. Refer Correcting typo/spelling mistakes with Fuzzy.
  15. Refer Did you mean options

Kibana Runtime Console Links:

  1. Index Management Console
  2. Dev Tools Console
  3. Analytics Discover

About

Elastic Search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages