SlideShare a Scribd company logo
1 of 26
ElasticSearch NL
     20/9/2012
Tonight

• Pizza & Beer
• Deep dive into faceting ( me :) )
• ElasticSearch.com introduction ( Uri/Shay )
• More drinks..
Deep Dive into
   Faceting
     Boaz Leskes
   CTO Buzzcapture
      @bleskes
?
The lazy dog jumps over a quick brown fox
The lazy dog jumps over a quick brown fox
q = fox




The lazy dog jumps over a quick brown fox




                5 times a
The quick brown fox
           The quick brown fox
          jumps quick the lazy fox
            The over brown dog
           jumps over the lazy dog
            jumps over the lazy dog




          The quick brown fox
           The quickdog jumps
q = fox     The lazy brown fox
          jumps over the lazy dog
           jumps the brown foxdog
            over over the lazy




          The quick brown fox
           The quick brown fox
          jumps quick the lazy fox
            The over brown dog
           jumps over the lazy dog
            jumps over the lazy dog
The quick brown fox
 The quick brown fox
jumps quick the lazy fox
  The over brown dog
 jumps over the lazy dog    5a
  jumps over the lazy dog




The quick brown fox
 The quickdog jumps
  The lazy brown fox
jumps over the lazy dog
 jumps the brown foxdog
  over over the lazy        3a   10 a



The quick brown fox
 The quick brown fox
jumps quick the lazy fox
  The over brown dog
 jumps over the lazy dog    2a
  jumps over the lazy dog
"facets": {
                                    "o_count": {
The quick brown fox                    "lettercount": {
 The quick brown fox
jumps quick the lazy fox
  The over brown dog
 jumps over the lazy dog    5a             "letter": "o",
  jumps over the lazy dog                  "field": "doc"
                                       }
                                    }
                                 }



The quick brown fox
 The quickdog jumps
  The lazy brown fox
jumps over the lazy dog
 jumps the brown foxdog
  over over the lazy        3a           10 a


                                 "facets": {
The quick brown fox                 "o_count": {
 The quick brown fox
jumps quick the lazy fox
  The over brown dog
 jumps over the lazy dog    2a         "type ": "lettercount"
  jumps over the lazy dog              "count": 12
                                     }
                                 }
Intermezzo



A plugin to register your facet
The quick brown fox
           The quick brown fox
          jumps quick the lazy fox
            The over brown dog
           jumps over the lazy dog
            jumps over the lazy dog




          The quick brown fox
           The quickdog jumps
q = fox     The lazy brown fox
          jumps over the lazy dog
           jumps the brown foxdog
            over over the lazy




          The quick brown fox
           The quick brown fox
          jumps quick the lazy fox
            The over brown dog
           jumps over the lazy dog
            jumps over the lazy dog
Facet Processor
                 parse

             creates   per shard



doc ids      Facet Collector           Facet

          doc ids         doc values

               Field Cache
brown   2   5   10   12
 dog
 fox    5   6   12   13
quick
brown       2   5         10   12
 dog
 fox        5   6         12   13
quick




        2

        5
                brown
        6        dog
       10           fox
                quick
       12

       13
The quick brown fox
 The quick brown fox
jumps quick the lazy fox
  The over brown dog
 jumps over the lazy dog    5a
  jumps over the lazy dog




The quick brown fox
 The quickdog jumps
  The lazy brown fox
jumps over the lazy dog
 jumps the brown foxdog
  over over the lazy        3a   10 a



The quick brown fox
 The quick brown fox
jumps quick the lazy fox
  The over brown dog
 jumps over the lazy dog    2a
  jumps over the lazy dog
Facet                       Facet Processor
 Facet
  Facet                                       Facet
                                reduce
          internal stream
James     3
Charlie   2
Adam      2
 Eve      1


Brown     2
Remco     2
Adam      2
 Eve      1


David     3
James     2
  Jan     2
 Eve      1
James     3   James     3
Charlie   2
              Charlie   2
Adam      2
              Adam      2
 Eve      1


Brown     2
              Brown     2
Remco     2
              Remco     2
Adam      2
              Adam      2
 Eve      1


David     3
              David     3
James     2
              James     2
  Jan     2
                Jan     2
 Eve      1
James     3   James     3
Charlie   2
              Charlie   2
Adam      2
              Adam      2
 Eve      1


Brown     2
              Brown     2   James   5
Remco     2
              Remco     2   Adam    4
Adam      2
              Adam      2   Remco   2
 Eve      1


David     3
              David     3
James     2
              James     2
  Jan     2
                Jan     2
 Eve      1
Facet Processor
     parse

Facet Collector

     Facet
 internal stream

Facet Processor
    reduce
     output
                   multi threaded

                   single thread
Faceted Date Histogram
Existing Machinery
Facet Processor
     parse

Facet Collector

     Facet
 internal stream

Facet Processor
    reduce
     output
                   multi threaded

                   single thread
Facet Processor
                          parse

                  Date Facet Collector
                        Value Processor

      10 sept.                                  17 sept.
Value Facet Collector                     Value Facet Collector

    Value Facet                               Value Facet

Value Facet Reduce                        Value Facet Reduce
Thanks!

                   Code is available on github:
Letter Count Facet: https://github.com/bleskes/es_nl_meetup_2012_9_20
Faceted Date Histogram: https://github.com/bleskes/elasticfacets

More Related Content

Recently uploaded

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
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
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
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...
 

Elastic search meetup 20/9/2012

  • 1. ElasticSearch NL 20/9/2012
  • 2. Tonight • Pizza & Beer • Deep dive into faceting ( me :) ) • ElasticSearch.com introduction ( Uri/Shay ) • More drinks..
  • 3. Deep Dive into Faceting Boaz Leskes CTO Buzzcapture @bleskes
  • 4. ?
  • 5. The lazy dog jumps over a quick brown fox
  • 6. The lazy dog jumps over a quick brown fox
  • 7. q = fox The lazy dog jumps over a quick brown fox 5 times a
  • 8. The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog jumps over the lazy dog The quick brown fox The quickdog jumps q = fox The lazy brown fox jumps over the lazy dog jumps the brown foxdog over over the lazy The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog jumps over the lazy dog
  • 9. The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog 5a jumps over the lazy dog The quick brown fox The quickdog jumps The lazy brown fox jumps over the lazy dog jumps the brown foxdog over over the lazy 3a 10 a The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog 2a jumps over the lazy dog
  • 10. "facets": { "o_count": { The quick brown fox "lettercount": { The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog 5a "letter": "o", jumps over the lazy dog "field": "doc" } } } The quick brown fox The quickdog jumps The lazy brown fox jumps over the lazy dog jumps the brown foxdog over over the lazy 3a 10 a "facets": { The quick brown fox "o_count": { The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog 2a "type ": "lettercount" jumps over the lazy dog "count": 12 } }
  • 11. Intermezzo A plugin to register your facet
  • 12. The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog jumps over the lazy dog The quick brown fox The quickdog jumps q = fox The lazy brown fox jumps over the lazy dog jumps the brown foxdog over over the lazy The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog jumps over the lazy dog
  • 13. Facet Processor parse creates per shard doc ids Facet Collector Facet doc ids doc values Field Cache
  • 14. brown 2 5 10 12 dog fox 5 6 12 13 quick
  • 15. brown 2 5 10 12 dog fox 5 6 12 13 quick 2 5 brown 6 dog 10 fox quick 12 13
  • 16. The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog 5a jumps over the lazy dog The quick brown fox The quickdog jumps The lazy brown fox jumps over the lazy dog jumps the brown foxdog over over the lazy 3a 10 a The quick brown fox The quick brown fox jumps quick the lazy fox The over brown dog jumps over the lazy dog 2a jumps over the lazy dog
  • 17. Facet Facet Processor Facet Facet Facet reduce internal stream
  • 18. James 3 Charlie 2 Adam 2 Eve 1 Brown 2 Remco 2 Adam 2 Eve 1 David 3 James 2 Jan 2 Eve 1
  • 19. James 3 James 3 Charlie 2 Charlie 2 Adam 2 Adam 2 Eve 1 Brown 2 Brown 2 Remco 2 Remco 2 Adam 2 Adam 2 Eve 1 David 3 David 3 James 2 James 2 Jan 2 Jan 2 Eve 1
  • 20. James 3 James 3 Charlie 2 Charlie 2 Adam 2 Adam 2 Eve 1 Brown 2 Brown 2 James 5 Remco 2 Remco 2 Adam 4 Adam 2 Adam 2 Remco 2 Eve 1 David 3 David 3 James 2 James 2 Jan 2 Jan 2 Eve 1
  • 21. Facet Processor parse Facet Collector Facet internal stream Facet Processor reduce output multi threaded single thread
  • 24. Facet Processor parse Facet Collector Facet internal stream Facet Processor reduce output multi threaded single thread
  • 25. Facet Processor parse Date Facet Collector Value Processor 10 sept. 17 sept. Value Facet Collector Value Facet Collector Value Facet Value Facet Value Facet Reduce Value Facet Reduce
  • 26. Thanks! Code is available on github: Letter Count Facet: https://github.com/bleskes/es_nl_meetup_2012_9_20 Faceted Date Histogram: https://github.com/bleskes/elasticfacets

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. Survey\n- How many people wrote an ES plugin?\n- How many people are familiar with the ES Faceting code?\n- How many people wrote an ES facet?\n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. remember the process, input sent to shards where the search is made. Then faceting kicks in.\n
  11. hmm - \nvalues are really tokens (potentially show the A example)\nmemory !!\n
  12. \n
  13. \n
  14. remember - this may lose data. Facets like top X terms may get wrong results\n
  15. \n
  16. \n
  17. \n
  18. \n
  19. - Date histogram is cool, but only gives you numerical stats\n- We needed to be able to know the top influentials in our data on a week by week basis (or month or what have you)\n-> Faceted Date Histogram was born -> What is it?\n
  20. \n
  21. \n
  22. \n