hunt-searchengine- A search and indexing engine.

Safe HaskellNone




mkDocDesc :: Object -> DocDesc Source

Smart constructor for document descriptions.

empty :: DocDesc Source

The empty description.

null :: DocDesc -> Bool Source

Check if document description is empty.

insert :: ToJSON v => Text -> v -> DocDesc -> DocDesc Source

Insert key value pair into description.

delete :: Text -> DocDesc -> DocDesc Source

Remove a key value pair

union :: DocDesc -> DocDesc -> DocDesc Source

Union of two descriptions.

restrict :: [Text] -> DocDesc -> DocDesc Source

restrict a DocDesc map to a set of fields

fromList :: ToJSON v => [(Text, v)] -> DocDesc Source

Create a document description from as list

toList :: DocDesc -> [(Text, Value)] Source

Create a list from a document description.