Portability | MultiParamTypeClasses FlexibleInstances |
---|---|
Stability | experimental |
Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
Safe Haskell | None |
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
- newtype SmallDocuments a = SmallDocuments {
- idToSmallDoc :: DocMap a
- emptyDocuments :: SmallDocuments a
- singleton :: Binary a => Document a -> SmallDocuments a
- docTable2smallDocTable :: Documents a -> SmallDocuments a
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
SmallDocuments | |
|
Binary a => HolDocuments SmallDocuments a | |
(Binary a, HolIndex i) => HolDocIndex SmallDocuments a i | |
Binary a => Binary (SmallDocuments a) | |
NFData a => NFData (SmallDocuments a) | |
(Binary a, XmlPickler a) => XmlPickler (SmallDocuments a) |
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