Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 711 Bytes

FilterEx.md

File metadata and controls

17 lines (15 loc) · 711 Bytes

Filter Exercise

  • Login into your ElasticSearch sandbox
  • Populate few sample data borrowed from data.gov:
curl https://elasticsearch-courseware-2d.icssolutions.ca/examples/data-sets/collisions.txt -o collisions.txt
curl -XPOST 'localhost:9200/_bulk' --data-binary "@collisions.txt"
  • Confirm there are some records to search on:
curl 'localhost:9200/sample-data/collisions/_search?pretty=true'
  • How many documents did you find?
  • Pick couple of options to search on: different leaf and compound clauses, different field types
  • Rewrite your queries into filtered query
  • You will be asked to present your findings to others