Riak / Search via Python Client, no Results from Server

claudef at br.ibm.com claudef at br.ibm.com
Tue May 22 16:46:12 EDT 2012

Dear colleagues. 

Not able to run a pattern search through the Python query. The server 
search option was enabled with the true setting in the app.config file 
(line 165) and the server was restarted.   Checking the Riak console log 
below,  I see the search being started, but no results are returned to the 
client. My version is "git" built from source. 

Console Log
2012-05-22 15:07:50.853 [info] <0.7.0> Application riak_search started on 
node 'riak at'
2012-05-22 15:07:50.854 [info] <0.7.0> Application basho_stats started on 
node 'riak at'
2012-05-22 15:07:50.865 [info] <0.7.0> Application runtime_tools started 
on node 'riak at'
2012-05-22 15:07:50.866 [info] <0.7.0> Application public_key started on 
node 'riak at'
2012-05-22 15:07:50.882 [info] <0.7.0> Application ssl started on node 
'riak at'
2012-05-22 15:07:50.944 [info] 
<0.1558.0>@riak_core:wait_for_application:390 Wait complete for 
application riak_search (0 seconds)
2012-05-22 15:07:51.034 [info] <0.1490.0>@riak_core:wait_for_service:410 
Wait complete for service riak_search (0 seconds)

Source code:  Read all data starting with Capital Letter A, cEDO is the 
data field name 
    client = riak.RiakClient(host='xxxxxxxx')
    data_bucket = client.bucket(bucketname) 
    mykeys = data_bucket.get_keys()
    howmany = len(mykeys) 
    print "How many keys in the bucket: "+ str(howmany) 
    search_query = client.search(bucketname, 'cEDO:A*')
    print "search query built" 
    resultset = search_query.run()
    print "result entries found: " + str(len(resultset)) 

Processing log: 
How many keys in the bucket: 500
search query built
result entries found: 0

No further error message is thrown. 

ps .. Also the basic sample from the Python client documentation (bucket= 
'user') shows the same results, 0 entries found by the serach. 

Thanks in advance for your insights. What's missing to start the  Search 
feature, or is something missing in the Lucene syntax ? 


Claude Falbriard 
Certified IT Specialist L2 - Middleware
AMS Hortolândia / SP - Brazil
phone:    +55 19 9837 0789
cell:         +55 13 8117 3316
e-mail:    claudef at br.ibm.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120522/35ddb69d/attachment.html>

More information about the riak-users mailing list