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

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
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
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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
 
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
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 

Recently uploaded (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
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
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
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
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 

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