hunt-searchengine-0.3.0.1: A search and indexing engine.

CopyrightCopyright (C) 2011 Sebastian M. Schlatt, Timo B. Huebel, Uwe Schmidt
LicenseMIT
MaintainerTimo B. Huebel (tbh@holumbus.org)
Stabilityexperimental
Portabilitynone portable
Safe HaskellNone
LanguageHaskell98

Hunt.Common.RawResult

Description

The raw result of index queries.

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.