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

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

Holumbus.Index.CompactDocuments

Contents

Description

A more space efficient substitute for Holumbus.Index.Documents

Synopsis

Documents type

data Documents a Source

Constructors

Documents 

Fields

idToDoc :: !(DocMap a)

A mapping from a document id to the document itself.

docToId :: !URIMap

A space efficient mapping from the URI of a document to its id.

lastDocId :: !DocId

The last used document id.

type URIMap = PrefixTree DocIdSource

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

simplify :: (Binary a, Show a) => Documents a -> Documents StringSource

Simplify a document table by transforming the custom information into a string.