Hi Shuhao, Some things to verify to help troubleshoot the situation...
In order for Riak Search to work, you must do the following *before* storing any data to be searched: - Enable search in the app.config. - Install the search hook on the bucket you would like to index. (bin/search-cmd install BUCKETNAME) Also, in order to search for objects using a field name, you must: - Ensure that the object's value is in a format supported by Riak Search (either XML or JSON) - Set the Content Type of the object. (ie: "application/json") Hope this helps! Best, Rusty On Thu, Dec 15, 2011 at 10:37 AM, Shuhao Wu <ad...@thekks.net> wrote: > I'm trying to use riak search from the python-client, > > client.search(bucketname, 'name:"mrrow"').run() > > It's returning [] but there is an entry in the database.. > > I have enabled_search.. is there something else i have to do? > > > Shuhao > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > -- Rusty Klophaus (@rustyio) *Basho Technologies, Inc.* www.basho.com
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com