Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- type IndexInfo = YzIndex
- data SearchResult = SearchResult {}
- type Score = Double
- indexInfo :: Index -> Maybe Schema -> Maybe N -> IndexInfo
- getIndex :: Connection -> Maybe Index -> IO [IndexInfo]
- putIndex :: Connection -> IndexInfo -> Maybe Timeout -> IO (Seq Content, VClock)
- deleteIndex :: Connection -> Index -> IO ()
- searchRaw :: Connection -> SearchQuery -> Index -> IO SearchResult
Documentation
data SearchResult Source #
Solr search result
Instances
Eq SearchResult Source # | |
Defined in Network.Riak.Types.Internal (==) :: SearchResult -> SearchResult -> Bool # (/=) :: SearchResult -> SearchResult -> Bool # | |
Ord SearchResult Source # | |
Defined in Network.Riak.Types.Internal compare :: SearchResult -> SearchResult -> Ordering # (<) :: SearchResult -> SearchResult -> Bool # (<=) :: SearchResult -> SearchResult -> Bool # (>) :: SearchResult -> SearchResult -> Bool # (>=) :: SearchResult -> SearchResult -> Bool # max :: SearchResult -> SearchResult -> SearchResult # min :: SearchResult -> SearchResult -> SearchResult # | |
Show SearchResult Source # | |
Defined in Network.Riak.Types.Internal showsPrec :: Int -> SearchResult -> ShowS # show :: SearchResult -> String # showList :: [SearchResult] -> ShowS # |
indexInfo :: Index -> Maybe Schema -> Maybe N -> IndexInfo Source #
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] Source #
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/
putIndex :: Connection -> IndexInfo -> Maybe Timeout -> IO (Seq Content, VClock) Source #
Create a new index or modify an existing index.
https://docs.basho.com/riak/kv/2.1.4/developing/api/protocol-buffers/yz-index-put/
deleteIndex :: Connection -> Index -> IO () Source #
searchRaw :: Connection -> SearchQuery -> Index -> IO SearchResult Source #
Search by raw SearchQuery
request (a Bytestring
)
using an Index
.