Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Engine

Built on wikipedia dump https://dumps.wikimedia.org/enwiki/20250501/enwiki-20250501-pages-articles-multistream1.xml-p1p41242.bz2

  • Finds documents that contain all tokens in the query (intersection logic)
  • Matches phrases using positional indexing

Index

  • Index maps each token to:
    • Document Name
    • Line Number
    • Token Position (0-based in line)
"wiktionary": [
    {
      "DocId": 4,
      "LineNo": 1,
      "Position": 0
    },
    {
      "DocId": 5,
      "LineNo": 1,
      "Position": 0
    },
    .
    .
]

Query Processing

  • Finds intersection of postings lists for all query terms
  • Uses token positions to ensure terms appear in sequence and next to each other

About

An attempt to create a simple search engine

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages