Riak / Search via Python Client, no Results from Server

Sean Cribbs sean at basho.com
Tue May 22 16:52:45 EDT 2012


Claude,

Generally your terms in wildcard queries need to be at least two or three
characters (I don't remember which), so either way A* is not going to work
as a search.

On Tue, May 22, 2012 at 4:46 PM, <claudef at br.ibm.com> wrote:

> 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 172.24.200.158'
> 2012-05-22 15:07:50.854 [info] <0.7.0> Application basho_stats started on
> node 'riak at 172.24.200.158'
> 2012-05-22 15:07:50.865 [info] <0.7.0> Application runtime_tools started
> on node 'riak at 172.24.200.158'
> 2012-05-22 15:07:50.866 [info] <0.7.0> Application public_key started on
> node 'riak at 172.24.200.158'
> 2012-05-22 15:07:50.882 [info] <0.7.0> Application ssl started on node '
> riak at 172.24.200.158'
> 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:    claudef at br.ibm.com
> *
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>


-- 
Sean Cribbs <sean at basho.com>
Software Engineer
Basho Technologies, Inc.
http://basho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20120522/1a2ecb4d/attachment.html>


More information about the riak-users mailing list