BillOTei / play-elastic-csv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Play csv vs elasticsearch

Just a small REST api to search dynamically into csv files with relationship mappings. Fast implementation as well of elasticsearch wrapper for better search performances. A csv file can be loaded directly into elastic db with appropriate JSON Formats. To use elasticsearch query api do that first:

Routes

  • GET /es/stats elasticsearch server probe

  • POST /es/index creates the elasticsearch db index

  • POST /es/load populates the elastic db with csv data

  • GET /es/airport/:id gets an airport by id in elastic search

  • GET /es/airports/by-country-code/:country gets an airport by country code in elasticsearch (under development)

  • GET /search/airports/by-country/:country gets an airport by country code or country name (fuzzy search as well)

  • GET /report/countries/airports-count gets 10 top and low count of airports per country

  • GET /report/countries/runways gets runway types per country

  • GET /report/runways/identifier gets most used runway identifiers

  • GET /report/airports/all gets all airports data (very heavy)

About

License:Other


Languages

Language:Scala 100.0%