Copyright | Copyright (C) 2011 Sebastian M. Schlatt, Timo B. Huebel, Uwe Schmidt |
---|---|
License | MIT |
Maintainer | Timo B. Huebel (tbh@holumbus.org) |
Stability | experimental |
Portability | none portable |
Safe Haskell | None |
Language | Haskell98 |
The raw result of index queries.
- type RawResult = [(Word, Occurrences)]
- type RawScoredResult = [(Word, (Score, Occurrences))]
- resultByWord :: Context -> RawResult -> Map Word (Map Context Occurrences)
- resultByDocument :: Context -> RawResult -> DocIdMap (Map Context (Map Word Positions))
Documentation
type RawResult = [(Word, Occurrences)] Source
The raw result returned when searching the index.
type RawScoredResult = [(Word, (Score, Occurrences))] Source
resultByWord :: Context -> RawResult -> Map Word (Map Context Occurrences) Source
Transform the raw result into a tree structure ordered by word.