hunt-searchengine-0.3.0.1: A search and indexing engine.

CopyrightCopyright (C) 2012 Uwe Schmidt
LicenseMIT
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Hunt.DocTable.HashedDocTable

Contents

Description

A more space efficient substitute for Hunt.Index.Documents and a more flexible implementation than Hunt.Index.CompactDocuments.

DocIds are computed by a hash function, so the inverse map from URIs to DocIds is substituted by the hash function.

MurmurHash2 64-bit is used as the hash function. https://sites.google.com/site/murmurhash/

It is a fast non-cryptographic hash function with good performance and hash distribution properties. http://programmers.stackexchange.com/a/145633

Synopsis

Documents type

newtype Documents e Source

The DocTable implementation. Maps DocIds to Documents.

Constructors

Documents

A mapping from a document id to the document itself.

Fields

idToDoc :: DocMap e
 

Instances

type DocMap e = DocIdMap e Source

The table which is used to map a document to an artificial id and vice versa.

Conversion