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

ElasticSearch with Ruby

ElasticSearch with Ruby

An introductory talk about using ElasticSearch with Ruby (and Rails).

Oriol Gual

March 22, 2013
Tweet

Other Decks in Programming

Transcript

  1. Examples curl -XPUT 'http://localhost:9200/twitter/' curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{ "user"

    : "kimchy", "post_date" : "2009-11-15T14:12:12", "message" : "trying out Elastic Search" }' curl -XGET 'http://localhost:9200/twitter/tweet/1' curl -XGET 'http://localhost:9200/twitter/tweet/_search?q=user:kimchy'
  2. Elastictastic • Object Document Mapper • Define fields at the

    model • has_many and belongs_to support • Better search DSL (than Tire)
  3. Our approach • Rubberband • Indexer objects triggered by an

    observer • ElasticSearch only as search engine • Custom service objects to search
  4. Further reading • http://www.elasticsearch.org/ • http://lucene.apache.org/ • https://github.com/karmi/tire • https://github.com/grantr/rubberband

    • https://github.com/brewster/elastictastic • https://github.com/sonian/elasticsearch-jetty • http://getelastomer.com/blog/ • http://jontai.me/blog/