SlideShare a Scribd company logo
1 of 46
Download to read offline
Getting search working should not be hard.
                 Lucas Catón
ElasticSearch?
Full-text search engine and database.
It’s based on Lucene...
  Written in Java (fast!)
     painless setup
      open-source
Real-time search
Full-text search engine and database

         Communicating
     JSON over RESTful HTTP

        Free search schema
        Document oriented
Cloud-ready & distributed
    Built for the cloud

    Highly-available
    Always available

         Scalable
    Scale to hundreds
Benchmarks by Socialcast Engineering
http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
Benchmarks by Socialcast Engineering
http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
Benchmarks by Socialcast Engineering
http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
Benchmarks by Socialcast Engineering
http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
Query DSL
Normalise values             and search terms
"deleteByQuery"             "DELETE QUERY"




                  'delete'
                    'by'
                   'query'
               'deletebyquery'
Analyse
Normalise values             and search terms
"deleteByQuery"             "DELETE QUERY"




                  'delete'
                    'by'
                   'query'
               'deletebyquery'
What is stored in ElasticSearch?
Document:
{
    tweet => "Perl is GREAT!",
    posted => "2011-08-15",
    user => {
       name => "Clinton Gormley",
       email => "drtech@cpan.org"
    },
    tags => ["perl","opinion"],
    posts => 2
}
Document:
         {
             tweet => "Perl is GREAT!",
             posted => "2011-08-15",
             user => {
                name => "Clinton Gormley",
Fields          email => "drtech@cpan.org"
             },
             tags => ["perl","opinion"],
             posts => 2
         }
Document:
                                    Values
{
    tweet => "Perl is GREAT!",
    posted => "2011-08-15",
    user => {
       name => "Clinton Gormley",
       email => "drtech@cpan.org"
    },
    tags => ["perl","opinion"],
    posts => 2
}
Built in analyzers:



Pattern, Language, Snowball, Custom, Standard
      Simple, Whitespace, Stop, Keyword
The Brown-Cow's Part_No. #A.BC123-456 joe@bloggs.com


                          keyword:
     The Brown-Cow's Part_No. #A.BC123-456 joe@bloggs.com

                           whitespace:
    The, Brown-Cow's, Part_No., #A.BC123-456, joe@bloggs.com

                               simple:
         the, brown, cow, s, part, no, a, bc, joe, bloggs, com

                            standard:
        brown, cow's, part_no, a.bc123, 456, joe, bloggs.com

                       snowball (English):
         brown, cow, part_no, a.bc123, 456, joe, bloggs.com
RTFM!
Language Analyzers

 A set of analyzers aimed at analyzing specific language text. The following types
 are supported: arabic, armenian, basque, brazilian, bulgarian, catalan, chinese,
cjk, czech, danish, dutch, english, finnish, french, galician, german, greek, hindi,
   hungarian, indonesian, italian, norwegian, persian, portuguese, romanian,
                      russian, spanish, swedish, turkish, thai.
Clients
Java, Ruby, PHP, Groovy, Python,
Perl, Erlang, .NET, Clojure, Scala...
Ruby clients
https://github.com/karmi/tire
Great documentation, easy installation, flexible.
↪ 43,605 total downloads (rubygems.org)



https://github.com/grantr/rubberband
Poor documentation.
↪ 9,570 total downloads (rubygems.org)



https://github.com/wireframe/elastic_searchable/
Not very flexible.
↪ 16,820 total downloads (rubygems.org)



https://github.com/angelf/escargot
Not ready yet (WIP).
↪ 998 total downloads (rubygems.org)
Ruby clients
https://github.com/karmi/tire
Great documentation, easy installation, flexible.
↪ 43,605 total downloads (rubygems.org)



https://github.com/grantr/rubberband
Poor documentation.
↪ 9,570 total downloads (rubygems.org)



https://github.com/wireframe/elastic_searchable/
Not very flexible.
↪ 16,820 total downloads (rubygems.org)



https://github.com/angelf/escargot
Not ready yet (WIP).
↪ 998 total downloads (rubygems.org)
evenshtein algorithm
L                  ce)     an
 (similarity based on dist
Rails
Highlight

> highlight :tags, :title, :options => { :tag => '<strong>' }
=> "Foo <strong>matched word</strong> Bar"




  https://github.com/karmi/tire/blob/master/test/integration/highlight_test.rb
Powerfull aggregation feature (Facets)
Powerfull aggregation feature (Facets)
Plugins

How to install:
/path/elasticsearch/<version>/bin/plugin -install <plugin_name>
Plugin - elasticsearch-head
 A web front end for an ElasticSearch cluster


https://github.com/mobz/elasticsearch-head
Plugin - elasticsearch-head
Plugin - elasticsearch-head
Plugin - Paramedic
  A simple tool to inspect the state and statistics
          about ElasticSearch clusters.


https://github.com/karmi/elasticsearch-paramedic
Plugin - Paramedic
Plugin - BigDesk
Live charts and statistics for ElasticSearch cluster.


    https://github.com/lukas-vlcek/bigdesk
Plugin - BigDesk
Disadvantages
=> Uses lots of memory;
=> No autowarming;
Interesting reading / reference
Official guide
http://www.elasticsearch.org/guide/

Language Analyzers
http://www.elasticsearch.org/guide/reference/index-modules/analysis/lang-analyzer.html

Terms of endearment – the ElasticSearch Query DSL explained
http://www.elasticsearch.org/tutorials/2011/08/28/query-dsl-explained.html

Realtime Search: Solr vs Elasticsearch
http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/

The Ruby Toolbox - Elastic Search
https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=elastic+search

Como adicionar consultas ultra-eficientes em grandes bases de documentos
http://prezi.com/tdskmzuxflts/como-adicionar-consultas-ultra-eficientes-em-grandes-bases-de-
documentos-com-elasticsearch/

Rails Casts
http://railscasts.com/episodes/306-elasticsearch-part-1
http://railscasts.com/episodes/307-elasticsearch-part-2 (paid content)
Thank you!
Questions?

More Related Content

Recently uploaded

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

2012 06-26 - Apresentação sobre ElasticSearch

  • 1. Getting search working should not be hard. Lucas Catón
  • 3. It’s based on Lucene... Written in Java (fast!) painless setup open-source
  • 4. Real-time search Full-text search engine and database Communicating JSON over RESTful HTTP Free search schema Document oriented
  • 5. Cloud-ready & distributed Built for the cloud Highly-available Always available Scalable Scale to hundreds
  • 6.
  • 7. Benchmarks by Socialcast Engineering http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
  • 8. Benchmarks by Socialcast Engineering http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
  • 9. Benchmarks by Socialcast Engineering http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
  • 10. Benchmarks by Socialcast Engineering http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/
  • 12. Normalise values and search terms "deleteByQuery" "DELETE QUERY" 'delete' 'by' 'query' 'deletebyquery'
  • 13. Analyse Normalise values and search terms "deleteByQuery" "DELETE QUERY" 'delete' 'by' 'query' 'deletebyquery'
  • 14. What is stored in ElasticSearch?
  • 15. Document: { tweet => "Perl is GREAT!", posted => "2011-08-15", user => { name => "Clinton Gormley", email => "drtech@cpan.org" }, tags => ["perl","opinion"], posts => 2 }
  • 16. Document: { tweet => "Perl is GREAT!", posted => "2011-08-15", user => { name => "Clinton Gormley", Fields email => "drtech@cpan.org" }, tags => ["perl","opinion"], posts => 2 }
  • 17. Document: Values { tweet => "Perl is GREAT!", posted => "2011-08-15", user => { name => "Clinton Gormley", email => "drtech@cpan.org" }, tags => ["perl","opinion"], posts => 2 }
  • 18. Built in analyzers: Pattern, Language, Snowball, Custom, Standard Simple, Whitespace, Stop, Keyword
  • 19. The Brown-Cow's Part_No. #A.BC123-456 joe@bloggs.com keyword: The Brown-Cow's Part_No. #A.BC123-456 joe@bloggs.com whitespace: The, Brown-Cow's, Part_No., #A.BC123-456, joe@bloggs.com simple: the, brown, cow, s, part, no, a, bc, joe, bloggs, com standard: brown, cow's, part_no, a.bc123, 456, joe, bloggs.com snowball (English): brown, cow, part_no, a.bc123, 456, joe, bloggs.com
  • 20. RTFM!
  • 21. Language Analyzers A set of analyzers aimed at analyzing specific language text. The following types are supported: arabic, armenian, basque, brazilian, bulgarian, catalan, chinese, cjk, czech, danish, dutch, english, finnish, french, galician, german, greek, hindi, hungarian, indonesian, italian, norwegian, persian, portuguese, romanian, russian, spanish, swedish, turkish, thai.
  • 22. Clients Java, Ruby, PHP, Groovy, Python, Perl, Erlang, .NET, Clojure, Scala...
  • 23. Ruby clients https://github.com/karmi/tire Great documentation, easy installation, flexible. ↪ 43,605 total downloads (rubygems.org) https://github.com/grantr/rubberband Poor documentation. ↪ 9,570 total downloads (rubygems.org) https://github.com/wireframe/elastic_searchable/ Not very flexible. ↪ 16,820 total downloads (rubygems.org) https://github.com/angelf/escargot Not ready yet (WIP). ↪ 998 total downloads (rubygems.org)
  • 24. Ruby clients https://github.com/karmi/tire Great documentation, easy installation, flexible. ↪ 43,605 total downloads (rubygems.org) https://github.com/grantr/rubberband Poor documentation. ↪ 9,570 total downloads (rubygems.org) https://github.com/wireframe/elastic_searchable/ Not very flexible. ↪ 16,820 total downloads (rubygems.org) https://github.com/angelf/escargot Not ready yet (WIP). ↪ 998 total downloads (rubygems.org)
  • 25.
  • 26.
  • 27. evenshtein algorithm L ce) an (similarity based on dist
  • 28. Rails
  • 29.
  • 30.
  • 31.
  • 32. Highlight > highlight :tags, :title, :options => { :tag => '<strong>' } => "Foo <strong>matched word</strong> Bar" https://github.com/karmi/tire/blob/master/test/integration/highlight_test.rb
  • 36. Plugin - elasticsearch-head A web front end for an ElasticSearch cluster https://github.com/mobz/elasticsearch-head
  • 39. Plugin - Paramedic A simple tool to inspect the state and statistics about ElasticSearch clusters. https://github.com/karmi/elasticsearch-paramedic
  • 41. Plugin - BigDesk Live charts and statistics for ElasticSearch cluster. https://github.com/lukas-vlcek/bigdesk
  • 43. Disadvantages => Uses lots of memory; => No autowarming;
  • 44. Interesting reading / reference Official guide http://www.elasticsearch.org/guide/ Language Analyzers http://www.elasticsearch.org/guide/reference/index-modules/analysis/lang-analyzer.html Terms of endearment – the ElasticSearch Query DSL explained http://www.elasticsearch.org/tutorials/2011/08/28/query-dsl-explained.html Realtime Search: Solr vs Elasticsearch http://engineering.socialcast.com/2011/05/realtime-search-solr-vs-elasticsearch/ The Ruby Toolbox - Elastic Search https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=elastic+search Como adicionar consultas ultra-eficientes em grandes bases de documentos http://prezi.com/tdskmzuxflts/como-adicionar-consultas-ultra-eficientes-em-grandes-bases-de- documentos-com-elasticsearch/ Rails Casts http://railscasts.com/episodes/306-elasticsearch-part-1 http://railscasts.com/episodes/307-elasticsearch-part-2 (paid content)