SlideShare uma empresa Scribd logo
1 de 46
Baixar para ler 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?

Mais conteúdo relacionado

Último

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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
 
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
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
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
 

Último (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
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
 
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...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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?
 

Destaque

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
 

Destaque (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)