diff options
author | Mainframe2008 <thg.bot@gmail.com> | 2013-02-19 11:40:43 +0100 |
---|---|---|
committer | Mainframe2008 <thg.bot@gmail.com> | 2013-02-19 11:40:43 +0100 |
commit | cd2fb4b448d7343e4e69baf9d24ab8926803e1f5 (patch) | |
tree | cb1630a13b6303845ce9cae7c1c3af941ee31a72 /lib/Net | |
parent | Added support for searching with secondary indexes (diff) | |
download | net-riak-cd2fb4b448d7343e4e69baf9d24ab8926803e1f5.tar.gz |
Add documentation for secondary indexes
Diffstat (limited to '')
-rw-r--r-- | lib/Net/Riak.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Net/Riak.pm b/lib/Net/Riak.pm index 06caba8..4f2bfe5 100644 --- a/lib/Net/Riak.pm +++ b/lib/Net/Riak.pm @@ -66,6 +66,13 @@ sub bucket { q => 'field:value' ); + # Secondary index setup (REST interface) + my $obj3 = $bucket->new_object('foo3', {...}); + $obj3->i2index({ myindex_bin => 'myvalue' }); + $obj3->store; + + my @keys = $client->i2search(bucket => 'foo', index => 'myindex_bin', key => 'myvalue' ); + =head1 DESCRIPTION =head2 ATTRIBUTES |