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

Safe HaskellNone
LanguageHaskell98

Hunt.Query.Processor

Description

The query processor to perform Querys.

processQuery executes the query and generates the unranked result. The result can be ranked with the default rank function.

Synopsis

Documentation

initProcessor :: ProcessConfig -> QueryIndex -> ProcessEnv Source

Initialize the state of the processor.

data ProcessConfig Source

Query processor configuration.

Constructors

ProcessConfig 

Fields

fuzzyConfig :: !FuzzyConfig

The configuration for fuzzy queries.

optimizeQuery :: !Bool

Optimize the query before processing (default: False).

wordLimit :: !Int

The maximum number of words used from a prefix. 0 = no limit (default: 100).

docLimit :: !Int

The maximum number of documents taken into account. 0 = no limit (default: 500).

data ProcessEnv Source

The internal state of the query processor.