Your SlideShare is downloading. ×
0
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Elasticsearch
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
418
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. sexta-feira, 27 de setembro de 13
  • 2. scoped_search sexta-feira, 27 de setembro de 13
  • 3. scoped_search sexta-feira, 27 de setembro de 13
  • 4. scoped_search sexta-feira, 27 de setembro de 13
  • 5. elasticsearch sexta-feira, 27 de setembro de 13
  • 6. elasticsearch Build on top of: Alternative to: sexta-feira, 27 de setembro de 13
  • 7. elasticsearch sexta-feira, 27 de setembro de 13
  • 8. • HTTP REST API • JSON documents • Distributed • Growing fast elasticsearch sexta-feira, 27 de setembro de 13
  • 9. • DSL for ruby/rails • Integrated with ActiveModel • https://github.com/karmi/retire Tire sexta-feira, 27 de setembro de 13
  • 10. using elasticsearch sexta-feira, 27 de setembro de 13
  • 11. • brew install elasticsearch (or just use Boxen) • put into your Gemfile: gem ‘tire’ • map your data • create your index(es) • search using elasticsearch sexta-feira, 27 de setembro de 13
  • 12. • For simples models with no (searchable) relations: mapping sexta-feira, 27 de setembro de 13
  • 13. mapping sexta-feira, 27 de setembro de 13
  • 14. mapping sexta-feira, 27 de setembro de 13
  • 15. mapping sexta-feira, 27 de setembro de 13
  • 16. indexing your data sexta-feira, 27 de setembro de 13
  • 17. Searching sexta-feira, 27 de setembro de 13
  • 18. • include Tire::Model::Callbacks • re-index cron or worker for volatile data • DB river plugin updating the index sexta-feira, 27 de setembro de 13
  • 19. re-indexing sexta-feira, 27 de setembro de 13
  • 20. • use timestamps in index name : (models201305) • use an alias that points to the latest index of that model (models => models201305) • use the alias as index name in the app • to re-index: create a new index and point the alias to it re-indexing sexta-feira, 27 de setembro de 13
  • 21. • elasticsearch status: • curl localhost:19200/_stats • generated mapping in ES: • curl localhost:19200/leads/_mapping misc sexta-feira, 27 de setembro de 13
  • 22. • http://www.elasticsearch.org/guide/ • https://github.com/karmi/retire • http://railscasts.com/episodes/306- elasticsearch-part-1 • http://railscasts.com/episodes/307- elasticsearch-part-2 resources sexta-feira, 27 de setembro de 13
  • 23. thanks! sexta-feira, 27 de setembro de 13

×