SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Dernier

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
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
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
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
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
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 

En vedette

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
 

En vedette (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

Notes de l'éditeur

  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