Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Advanced search for your Legacy application - J On The Beach

Advanced search for your Legacy application - J On The Beach

Talk given at J On The Beach 2016, Malaga - Spain

Elastic Co

May 20, 2016
Tweet

More Decks by Elastic Co

Other Decks in Programming

Transcript

  1. 2

  2. DATABASE SQL ETL using a ETL 7 WEB APP HTTP

    / REST JDBC ELASTICSEARCH REST / JSON
  3. think document! • Change your mindset: ‒ Forget SQL! ‒

    Index what you want to find • A document ‒ A JSON object ‒ Core field types (string, numbers, booleans) ‒ Complex field types (arrays, objects) ‒ Additional field types (geo points, geo shapes) 8
  4. DATABASE SQL direct connection 10 WEB APP HTTP / REST

    JDBC ES-CLIENT ELASTICSEARCH REST / JSON
  5. JSON document design 11 PUT /person/person/1 { "name":"Joe Pink", "dateOfBirth":"1971-12-26",

    "address_id":"2", "marketing_id":"3" } PUT /person/address/2 { "city":"Paris", "country":"France" } PUT /person/marketing/3 { "cars":1000, "food":1500 }
  6. JSON document design 12 PUT /person/person/1 { "name":"Joe Pink", "dateOfBirth":"1971-12-26",

    "address":{ "city":"Paris", "country":"France" }, "marketing":{ "cars":1000, "food":1500 } }
  7. direct connection 13 demo time $ git checkout 01-direct $

    git checkout 02-bulk $ git checkout 03-mapping $ git checkout 04-aggs $ git checkout 05-compute $ mvn clean install jetty:run $ cat README.markdown
  8. DATABASE SQL using brokers 15 WEB APP HTTP / REST

    JDBC ES-CLIENT ELASTICSEARCH REST / JSON
  9. ELASTICSEARCH REST / JSON using brokers 16 WEB APP HTTP

    / REST JDBC ES-CLIENT DATABASE SQL
  10. ELASTICSEARCH REST / JSON using brokers 17 WEB APP HTTP

    / REST JDBC ES-CLIENT DATABASE SQL