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

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

Holumbus.Index.CompactSmallDocuments

Contents

Description

A simple version of Holumbus.Index.Documents. This implementation is only for reading a document table in the search part of an application. The mapping of URIs to DocIds is only required during index building, not when accessing the index. So this 2. mapping is removed in this implementation for saving space

Synopsis

Documents type

newtype SmallDocuments a Source

The table to store the document descriptions

This table does not contain the reverse map from URIs do DocIds, this reverse map is only needed when crawling, not for searching the index. As a consequence, most of the indes operations are not implemented

see also Documents data type

Constructors

SmallDocuments 

Fields

idToSmallDoc :: DocMap a

A mapping from a doc id to the document itself.

Construction

emptyDocuments :: SmallDocuments aSource

Create an empty table.

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

Create a document table containing a single document.

Conversion

docTable2smallDocTable :: Documents a -> SmallDocuments aSource

Convert a Compact document table into a small compact document table. Called at the end of building an index