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 '[email protected]'
2012-05-22 15:07:50.854 [info] <0.7.0> Application basho_stats started on 
node '[email protected]'
2012-05-22 15:07:50.865 [info] <0.7.0> Application runtime_tools started 
on node '[email protected]'
2012-05-22 15:07:50.866 [info] <0.7.0> Application public_key started on 
node '[email protected]'
2012-05-22 15:07:50.882 [info] <0.7.0> Application ssl started on node 
'[email protected]'
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 
try: 
    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. 
         
http://basho.github.com/riak-python-client/tutorial.html#using-search

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

Regards, 
Claude


Claude Falbriard 
Certified IT Specialist L2 - Middleware
AMS Hortolândia / SP - Brazil
phone:    +55 19 9837 0789
cell:         +55 13 8117 3316
e-mail:    [email protected]
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to