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

Portabilitynone portable
Stabilityexperimental
MaintainerTimo B. Huebel (tbh@holumbus.org)
Safe HaskellNone

Holumbus.Index.Common.RawResult

Description

The RawResult data type

Synopsis

Documentation

type RawResult = [(Word, Occurrences)]Source

The raw result returned when searching the index.

resultByWord :: Context -> RawResult -> Map Word (Map Context Occurrences)Source

Transform the raw result into a tree structure ordered by word.

resultByDocument :: Context -> RawResult -> DocIdMap (Map Context (Map Word Positions))Source

Transform the raw result into a tree structure ordered by document.