bank-query-es

ES based query DSL example.

8 months after

Elastic search query DSL (Bank example)

I came across Bloodhound and ES Bank Example. Which coupled with my intrest in DSL's, compilers led to this project. A query DSL for the bank example. This can probably even be useful example to some. Given my super beginner understanding of haskell the code base could be painful to read but hopefully that will improve.

Usage

  • Run elasticsearch. Load up the bank data. (on localhost:9200)
  • Run stack build.
  • Run stack exec app-search-exe. (Now the app is running)
  • App will run on port 8081
  • You can now execute queries on it like curl -XGET -G http://localhost:8081/search -d 'query=gender:F'

Query syntax

  • You can use gender, age, balance, and, or.

Examples

  • query=(balance%20%20>48000)%20and%20age<=24%20and%20gender:F
  • query=(balance%20%20<48000)%20or%20age<=24%20and%20gender:F
  • and so on

Related Repositories

awesome-public-datasets

awesome-public-datasets

An awesome list of high-quality open datasets in public domains (on-going). By e ...

elasticsearch-sql

elasticsearch-sql

Use SQL to query Elasticsearch ...

event-sourcing-examples

event-sourcing-examples

Example code for my building and deploying microservices with event sourcing, CQ ...

elastic4s

elastic4s

Non blocking, type safe DSL and Scala client for Elasticsearch ...

php-iban

php-iban

Generate, parse, validate, error-correct and present IBAN (and IIBAN) bank accou ...