Holumbus-Searchengine-1.2.3: A search and indexing engine.

Stabilityexperimental
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Safe HaskellNone

Holumbus.Index.HashedDocuments

Contents

Description

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

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

Synopsis

Documents type

newtype Documents a Source

Constructors

Documents

A mapping from a document id to the document itself.

Fields

idToDoc :: DocMap a
 

type DocMap a = DocIdMap (CompressedDoc a)Source

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

Construction

emptyDocuments :: Documents aSource

Create an empty table.

singleton :: Binary a => Document a -> Documents aSource

Create a document table containing a single document.

Conversion