Wednesday, July 26, 2006

Building Search Engines. Design - Architecture and other

2) Inverted index search engine.

a. Create a DBM file as below in a file after crawling and load this has during query search to get to the result document
%dbm = (
    '-1' => 'Doc One',
    '-2' => 'Doc Two',
    'another' => '-2',
    'doc' => '-1-2',
    'document' => '-1-2',
    'here' => '-2',
    'is' => '-1-2',
    'one' => '-1',
    'this' => '-1',
    'two' => '-2'
  );

0 Comments:

Post a Comment

<< Home