"gold" is nested so I believe the search term would be : v_gold:255
An underscore is used as the delimiter between nested keys. -Alexander Sicular @siculars On Jun 17, 2013, at 9:36 AM, magnatua <[email protected]> wrote: > How to search for records in JSON? > > For example: > > http://server.cc/riak/Scores/user12 > > { v: "{"score":0,"tab":14,"gold":255}" } > > How do I get all the records where the "gold" is more than 150 or equal 255? > > I'm installed the Riak Search hook on bucket. I have used example from riak > php lib. > > $client = new Riak(self::HOST, self::PORT); > $bucket = $client->bucket("Scores"); > $results = $client->search("Scores", "gold:255")->run(); > > doesn't have results. > > Can this be done through mapreduce? > > > > -- > View this message in context: > http://riak-users.197444.n3.nabble.com/How-to-search-for-records-in-JSON-tp4028088.html > Sent from the Riak Users mailing list archive at Nabble.com. > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
