SlideShare una empresa de Scribd logo
1 de 52
Descargar para leer sin conexión
•↓                        ↓
                • http://code.google.com/p/fujene/




                                                     1


2011   5   30
P2P distributed-search
                        engine
                       Yusuke FUJISAKA




2011   5   30
•[       ]
                    (→   )
                •



                             3


2011   5   30
•
                •
                •
                •
                • etc...

                           4


2011   5   30
1.GB( TB)
                2.
                3.
                4.




                            5


2011   5   30
• Namazu
                • Senna
                • Lucene
                • Solr
                • Hyper Estraier
                • ...

                                   6


2011   5   30
•
                    •   …

                •
                    •



                            7


2011   5   30
Fujene(     )
                •       :
                    •
                    • P2P
                    •
                    •
                    •

                                8


2011   5   30
•              →FARE system
                    • Fast       →   (        )

                    • Autonomous →
                    • Retrieval →
                    • Engine     →
                    • system

                                                  9


2011   5   30
•
                •
                •
                •
                •
                •
                    10


2011   5   30
•
                •




                    11


2011   5   30
•
                                      Content    =   Title
                                      Content    =   Body
                                      Appendix   =   ID
                                      Appendix   =   URL



                    Fujene --primary SettingFile

2011   5   30
•                     IP
                •

                    10.0.1.5




                               Fujene --secondary 10.0.1.5
2011   5   30
Existing node

           New node




2011   5   30
F
                                A


                                    B
                E

                            C
                        D
2011   5   30
F
                                A


                                    B
                E

                            C
                        D
2011   5   30
F
                                A


                                    B
                E

                            C
                        D
2011   5   30
Replicate chain
                • Chord chain[1]        :
                 •
                 • Consistent hash[2]
                 •




2011   5   30
Chord chain
                        F
                                    A


                                        B
                    E

                                C
                            D
2011   5   30
Chord chain
                         F
                   Hash: 0xEF459AB...
                                            A


                                                B
                    E

                                        C
                               D
2011   5   30
Topic:
                •1
                •        1




2011   5   30
:
                             1
           Node 1: 56%
                                 Node 2:
                                  20%


                                 2


                             Node 3: 24%
                         3
2011   5   30
:
                             1
           Node 1: 56%
                                 Node 2:
                                  20%


                                 2


                             Node 3: 24%
                         3
2011   5   30
:
                             2
                                                   3
                             Node 1 56% 42%
                             Node 2 20% 32%
                1                                          1
                             Node 3 24% 26%
                 3                                         2
                     1                                 3
                         2                     1
                                 1 2       2
                                       1
2011   5   30
:
                             2
                                                   3
                             Node 1 56% 42%
                             Node 2 20% 32%
                1                                          1
                             Node 3 24% 26%
                 3                                         2
                     1                                 3
                         2                     1
                                 1 2       2
                                       1
2011   5   30
Indexing
                •

                •
                •              (         )
                    •                 : Sen(=MeCab)
                    •   : Bi-gram, Uni-gram
                    •
2011   5   30
Indexing
                •

                •




2011   5   30
Indexing
           ID: 12345          F
            Title: ...                              A       Content
            Body: ...        RPC/API(       )                Term
             URL: ...                                        Term
                                                        B
                         E

                                                C
                                        D
2011   5   30
Indexing
                        F
                                       A       Content


                                           B    Hash
                            Hash
                    E

                                   C
                              D
2011   5   30
Indexing
                        F
                                              A


                                                  B
                    E   (replication=3)

                                          C
                                 D
2011   5   30
Skip pointer             …

                 Dictionary      …

                Invert index     …
                           ID
                Skip pointer             …

                   Content      … Appendix   …

2011   5   30
(8) Lookup
                Skip pointer                                        …
                                               (12)   (9) Lookup

                 Dictionary    (10)                   …
                           (16)         (11)
                                                      (13) Lookup
                Invert index   (14)                   …
                                        (15)                        (2) Lookup
                Skip pointer                                        …
                                               (7)    (3) Lookup

                   Content        (4)                   Appendix      (1)        …
                                        (5)
                                                                        (6)
2011   5   30
•                                  :
                    • Contents ... (1) (7)
                    • Dictionary ... (8) (12)
                    • Invert index ... (13) (16)
                •

                                                       28


2011   5   30
Searching
                •
                    →
                •
                    →
                •

                            29


2011   5   30
Searching
                        F   Term
                                   Analyze
                            Term             A       Query
                            Term

                                                 B
                    E

                                         C
                               D
2011   5   30
Searching
                              F
                                                      A   Intersection
                    ID: 12, 24, 35, 49, ...


                        ID: 12, 30, 49, 55, ...           B
                    E                                 ID: 7, 12, 30, 49, ...

                                                  C
                                         D
2011   5   30
Searching
                        F                          Output
                                         A
                                                 ID: 12
                            ID: 49           B
                    E

                                     C
                            D
2011   5   30
Query
                Skip pointer                       …

                 Dictionary                …

                Invert index               …
                           ID
                Skip pointer                       …

                   Content                … Appendix        …
                         Output                        Output
2011   5   30
•

                •




2011   5   30
F
                        beacon       A


                                         B
                E

                                 C
                            D
2011   5   30
“live”
                    F
                                         A


                                             B
                E

                                     C
                        D
2011   5   30
F         ×
                                          A
                        × ×

                                              B
                E

                                      C
                                  D
2011   5   30
6
                        F         ×
                                                  A
                5           × ×                       1

                                                      B
                E
                                                      2
                                              C
                    4
                                      D   3
2011   5   30
A   B   C   D   E   F
                4   5   6   1   2   3
                5   6   1   2   3   4
                6   1   2   3   4   5
                3   4   5



2011   5   30
Future work
                •
                    •
                    •
                        •
                    • Web app
                        •
                    •
                                40


2011   5   30
Topic:




                         41


2011   5   30
Topic:
                    Index Server   Search Server

                          Node Manager /
                           Search Gather

                     Store/Lookup, Query Parser

                         Memory/Disk Blocks
                                                   42


2011   5   30
Topic: Intersection
                •            : r1, r2, ..., rn   O(∑ r)
                •
                r1 1 4   6 10 12 16 22 29 30 31 37 40 43 47
                r2 2 4   6    9 12 14 26 30 32 37 43 44 47 50
                r3 4 5   6 10 11 12 23 27 30 37 39 41 43 47




2011   5   30
Topic: Intersection
                1.
                2.
                     2.1.
                     2.2.


                r1 1 4 6 10 12 16 22 29 30 31 37 40 43 47
                r2 2 4 6 9 12 14 26 30 32 37 43 44 47 50
                r3 4 5 6 10 11 12 23 27 30 37 39 41 43 47

2011   5   30
Topic:
                 MemoryBlockPool




           withdraw                             deposit
                                                          …

                Skip Pointer   Invert Index   Content
                                                              45


2011   5   30
Bibliography(1)
                (1) I. Stoica, et al.; Chord: A Scalable Peer-
                  to-peer Lookup Service for Internet
                  Applications; SIGCOMM 2001; October
                  2001
                (2) D. Karger, et al.; Consistent Hashing
                  and Random Trees: Distributed Caching
                  Protocols for Relieving Hot Spots on the
                  World Wide Web; STOC ’97; 1997

                                                                 46


2011   5   30
Bibliography(2)
                (3) C. D. Manning, et al.; An Introduction to
                  Information Retrieval; Cambridge UP;
                  2009
                (4) T. Luu, et al.; ALVIS Peers: A Scalable
                  Full-text Peer-to-Peer Retrieval Engine;
                  P2PIR ’06; Nov. 2006



                                                                47


2011   5   30

Más contenido relacionado

Destacado

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
 

Destacado (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...
 

P2p search engine

  • 1. •↓ ↓ • http://code.google.com/p/fujene/ 1 2011 5 30
  • 2. P2P distributed-search engine Yusuke FUJISAKA 2011 5 30
  • 3. •[ ] (→ ) • 3 2011 5 30
  • 4. • • • • etc... 4 2011 5 30
  • 5. 1.GB( TB) 2. 3. 4. 5 2011 5 30
  • 6. • Namazu • Senna • Lucene • Solr • Hyper Estraier • ... 6 2011 5 30
  • 7. • … • • 7 2011 5 30
  • 8. Fujene( ) • : • • P2P • • • 8 2011 5 30
  • 9. →FARE system • Fast → ( ) • Autonomous → • Retrieval → • Engine → • system 9 2011 5 30
  • 10. • • • • • 10 2011 5 30
  • 11. • 11 2011 5 30
  • 12. Content = Title Content = Body Appendix = ID Appendix = URL Fujene --primary SettingFile 2011 5 30
  • 13. IP • 10.0.1.5 Fujene --secondary 10.0.1.5 2011 5 30
  • 14. Existing node New node 2011 5 30
  • 15. F A B E C D 2011 5 30
  • 16. F A B E C D 2011 5 30
  • 17. F A B E C D 2011 5 30
  • 18. Replicate chain • Chord chain[1] : • • Consistent hash[2] • 2011 5 30
  • 19. Chord chain F A B E C D 2011 5 30
  • 20. Chord chain F Hash: 0xEF459AB... A B E C D 2011 5 30
  • 21. Topic: •1 • 1 2011 5 30
  • 22. : 1 Node 1: 56% Node 2: 20% 2 Node 3: 24% 3 2011 5 30
  • 23. : 1 Node 1: 56% Node 2: 20% 2 Node 3: 24% 3 2011 5 30
  • 24. : 2 3 Node 1 56% 42% Node 2 20% 32% 1 1 Node 3 24% 26% 3 2 1 3 2 1 1 2 2 1 2011 5 30
  • 25. : 2 3 Node 1 56% 42% Node 2 20% 32% 1 1 Node 3 24% 26% 3 2 1 3 2 1 1 2 2 1 2011 5 30
  • 26. Indexing • • • ( ) • : Sen(=MeCab) • : Bi-gram, Uni-gram • 2011 5 30
  • 27. Indexing • • 2011 5 30
  • 28. Indexing ID: 12345 F Title: ... A Content Body: ... RPC/API( ) Term URL: ... Term B E C D 2011 5 30
  • 29. Indexing F A Content B Hash Hash E C D 2011 5 30
  • 30. Indexing F A B E (replication=3) C D 2011 5 30
  • 31. Skip pointer … Dictionary … Invert index … ID Skip pointer … Content … Appendix … 2011 5 30
  • 32. (8) Lookup Skip pointer … (12) (9) Lookup Dictionary (10) … (16) (11) (13) Lookup Invert index (14) … (15) (2) Lookup Skip pointer … (7) (3) Lookup Content (4) Appendix (1) … (5) (6) 2011 5 30
  • 33. : • Contents ... (1) (7) • Dictionary ... (8) (12) • Invert index ... (13) (16) • 28 2011 5 30
  • 34. Searching • → • → • 29 2011 5 30
  • 35. Searching F Term Analyze Term A Query Term B E C D 2011 5 30
  • 36. Searching F A Intersection ID: 12, 24, 35, 49, ... ID: 12, 30, 49, 55, ... B E ID: 7, 12, 30, 49, ... C D 2011 5 30
  • 37. Searching F Output A ID: 12 ID: 49 B E C D 2011 5 30
  • 38. Query Skip pointer … Dictionary … Invert index … ID Skip pointer … Content … Appendix … Output Output 2011 5 30
  • 39. • 2011 5 30
  • 40. F beacon A B E C D 2011 5 30
  • 41. “live” F A B E C D 2011 5 30
  • 42. F × A × × B E C D 2011 5 30
  • 43. 6 F × A 5 × × 1 B E 2 C 4 D 3 2011 5 30
  • 44. A B C D E F 4 5 6 1 2 3 5 6 1 2 3 4 6 1 2 3 4 5 3 4 5 2011 5 30
  • 45. Future work • • • • • Web app • • 40 2011 5 30
  • 46. Topic: 41 2011 5 30
  • 47. Topic: Index Server Search Server Node Manager / Search Gather Store/Lookup, Query Parser Memory/Disk Blocks 42 2011 5 30
  • 48. Topic: Intersection • : r1, r2, ..., rn O(∑ r) • r1 1 4 6 10 12 16 22 29 30 31 37 40 43 47 r2 2 4 6 9 12 14 26 30 32 37 43 44 47 50 r3 4 5 6 10 11 12 23 27 30 37 39 41 43 47 2011 5 30
  • 49. Topic: Intersection 1. 2. 2.1. 2.2. r1 1 4 6 10 12 16 22 29 30 31 37 40 43 47 r2 2 4 6 9 12 14 26 30 32 37 43 44 47 50 r3 4 5 6 10 11 12 23 27 30 37 39 41 43 47 2011 5 30
  • 50. Topic: MemoryBlockPool withdraw deposit … Skip Pointer Invert Index Content 45 2011 5 30
  • 51. Bibliography(1) (1) I. Stoica, et al.; Chord: A Scalable Peer- to-peer Lookup Service for Internet Applications; SIGCOMM 2001; October 2001 (2) D. Karger, et al.; Consistent Hashing and Random Trees: Distributed Caching Protocols for Relieving Hot Spots on the World Wide Web; STOC ’97; 1997 46 2011 5 30
  • 52. Bibliography(2) (3) C. D. Manning, et al.; An Introduction to Information Retrieval; Cambridge UP; 2009 (4) T. Luu, et al.; ALVIS Peers: A Scalable Full-text Peer-to-Peer Retrieval Engine; P2PIR ’06; Nov. 2006 47 2011 5 30