riak-1.1.2.0: A Haskell client for the Riak decentralized data store

Safe HaskellNone
LanguageHaskell98

Network.Riak.Search

Description

Synopsis

Documentation

type IndexInfo = YzIndex #

Search index info

type Score = Double #

Search result score

indexInfo :: Index -> Maybe Schema -> Maybe N -> IndexInfo #

IndexInfo smart constructor.

If Nothing, schema defaults to "_yz_default".

If Nothing, n defaults to the default n value for buckets that have not explicitly set the property. In the default installation of riak, this is 3 (see https://github.com/basho/riak_core/blob/develop/priv/riak_core.schema).

getIndex :: Connection -> Maybe Index -> IO [IndexInfo] #

Get an index info for Just index, or get all indexes for Nothing.

https://docs.basho.com/riak/kv/2.1.4/developing/api/protocol-buffers/yz-index-get/

searchRaw :: Connection -> SearchQuery -> Index -> IO SearchResult #

Search by raw SearchQuery request (a Bytestring) using an Index.