ThoughtLeadr/Riak-Haskell-HTTP-Client — pull request #3 by ryb (2012-06-05 01:47:12+00:00)
Title: 'put' and 'lookup' using secondary indexes

Example:

> putWithIndexes defaultClient "index_test" "mykey1" [("field1", BinValue "val1"), ("field2", IntValue 1001)] "data1"
Right ()
> lookupIndex defaultClient "index_test" "field2" (IntValue 1001)
Right ["mykey1"]
> lookupIndex defaultClient "index_test" "field1" (BinValue "val1")
Right ["mykey1"]