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

Advanced search for your legacy application

Advanced search for your legacy application

Devoxx UK 2014

How do you mix SQL and NoSQL worlds without starting a messy revolution?

This live coding talk will show you how to add Elasticsearch to your legacy application without changing all your current development habits. Your application will have suddenly have advanced search features, all without the need to write complex SQL code!
David will start from a Spring, Hibernate and Postgresql based application and will add a complete integration of Elasticsearch, all live from the stage during his presentation.

Elasticsearch Inc

June 12, 2014
Tweet

More Decks by Elasticsearch Inc

Other Decks in Programming

Transcript

  1. @dadoonet #elasticsearch our legacy application WEB APP HTTP / REST

    JDBC SERVICE LAYER DAO LAYER WEB SERVICE LAYER DOMAIN LAYER
  2. @dadoonet #elasticsearch JSON document design 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 }
  3. @dadoonet #elasticsearch JSON document design PUT /person/person/1 { "name":"Joe Pink",

    "dateOfBirth":"1971-12-26", "address":{ "city":"Paris", "country":"France" }, "marketing":{ "cars":1000, "food":1500 } }
  4. @dadoonet #elasticsearch using an ETL ETL DATABASE SQL WEB APP

    HTTP / REST JDBC ELASTICSEARCH REST / JSON
  5. @dadoonet #elasticsearch JDBC river ETL DATABASE SQL WEB APP HTTP

    / REST JDBC ELASTICSEARCH REST / JSON SQL JSON
  6. @dadoonet #elasticsearch JDBC river DATABASE SQL WEB APP HTTP /

    REST JDBC ELASTICSEARCH REST / JSON SQL
  7. @YourTwitterHandle @dadoonet #elasticsearch D em o $ 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. @YourTwitterHandle #DVXFR14{session hashtag} @dadoonet #elasticsearch Q & A David Pilato

    Technical advocate! ! elasticsearch. @dadoonet http://elasticsearch.com/support/ [email protected]