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

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

Holumbus.Query.Intermediate

Contents

Description

Version : 0.3

The data type for intermediate results occuring during query processing.

Synopsis

The intermediate result type.

type Intermediate = DocIdMap IntermediateContextsSource

The intermediate result used during query processing.

Construction

emptyIntermediate :: IntermediateSource

Create an empty intermediate result.

Query

null :: Intermediate -> BoolSource

Check if the intermediate result is empty.

sizeIntermediate :: Intermediate -> IntSource

Returns the number of documents in the intermediate result.

Combine

union :: Intermediate -> Intermediate -> IntermediateSource

Union two sets of intermediate results.

difference :: Intermediate -> Intermediate -> IntermediateSource

Substract two sets of intermediate results.

intersection :: Intermediate -> Intermediate -> IntermediateSource

Intersect two sets of intermediate results.

unions :: [Intermediate] -> IntermediateSource

Merges a bunch of intermediate results into one intermediate result by unioning them.

Conversion

fromList :: Word -> Context -> RawResult -> IntermediateSource

Create an intermediate result from a list of words and their occurrences.

toResult :: HolDocuments d c => d c -> Intermediate -> Result cSource

Convert to a Result by generating the WordHits structure.