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

Safe HaskellNone
LanguageHaskell98

Hunt.Query.Language.Builder

Synopsis

Documentation

qWord :: Text -> Query Source

case sensitive prefix search of a single word

qWordNoCase :: Text -> Query Source

case insensitive prefix search of a single word

qFullWord :: Text -> Query Source

exact case sensitive search of a single word

qFullWordNoCase :: Text -> Query Source

exact, but case insensitive search of a single word

qPhrase :: Text -> Query Source

exact search of a sequence of space separated words. For each word in the sequence, an exact word search is performed.

qPhraseNoCase :: Text -> Query Source

exact, but case insenitive search of a sequence of space separated words. For each word in the sequence, a word search is performed.

qPrefixPhrase :: Text -> Query Source

prefix search of a sequence of space separated words. For each word in the sequence, a prefix search is performed.

qPrefixPhraseNoCase :: Text -> Query Source

prefix search of a sequence of space separated words. For each word in the sequence, a prefix search is performed.

qRange :: Text -> Text -> Query Source

search a range of words or an intervall for numeric contexts

qAnd :: Query -> Query -> Query Source

and query

qOr :: Query -> Query -> Query Source

or query

qAndNot :: Query -> Query -> Query Source

and not query

qNext :: Query -> Query -> Query Source

neighborhood queries. The list must not be empty

TODO: a better name for qNext and qNexts, qPhrase is already used

setNoCaseSearch :: Query -> Query Source

case insensitve search, only sensible for word and phrase queries

setFuzzySearch :: Query -> Query Source

fuzzy search, only sensible for word and phrase queries

setContext :: Context -> Query -> Query Source

restrict search to a single context

setContexts :: [Context] -> Query -> Query Source

restrict search to list of contexts

setBoost :: Weight -> Query -> Query Source

boost the search results by a factor

withinContexts :: [Context] -> Query -> Query Source

Deprecated: Don't use this, use setContexts

withinContext :: Context -> Query -> Query Source

Deprecated: Don't use this, use setContext

withBoost :: Weight -> Query -> Query Source

Deprecated: Don't use this, use setBoost

qContext :: Context -> Text -> Query Source

shortcut for case sensitive context search