The python client does not support any advance SOLR features like deep
search, facets, grouping, etc. Just use pythons 'requests' lib to query the
HTTP interface of Riak for all your search related queries.
Steve
On 14 December 2015 at 08:34, Joe Olson wrote:
>
> I am trying to use the Solr (*
I am trying to use the Solr ( Yokozuna ) 'group' options with fulltext_search.
I get expected results when I use the http interface, but not with
python-riak-client fulltext pbc search.
Here's what I'm trying to do:
# This works fine
curl "http://:8098/search/query/solrdefault?wt=json&q=id_s:
tried some variations of the same, did not seem to work
Any suggestions?
Thanks,
Meghna
From: Eric Redmond [mailto:eredm...@basho.com]
Sent: Tuesday, August 19, 2014 1:12 PM
To: Sapre, Meghna A
Cc: riak-users
Subject: Re: Riak python client and Solr
You don't pass in a query as a url encoded
Ok, now I saw Sean's response... it worked perfectly that way :)
r = client.fulltext_search('ix_images', 'site_s:aaa AND keywords_s:bbb',
sort='clickrate_f asc')
Thanks!
Alex
On Tue, Aug 19, 2014 at 10:17 PM, Alex De la rosa
wrote:
> Seems I was wrong... the API doesn't complain but it doesn'
Seems I was wrong... the API doesn't complain but it doesn't perform the
sorting as I thought it should do... any clues on how to do it?
this:
r = client.fulltext_search('ix_images', 'site_s:xxx AND keywords_s:yyy')
plus sorting by "clickrate_f desc"
Thanks!
Alex
On Tue, Aug 19, 2014 at 10:13
Hi there,
I was having the same problems too...
this works fine:
r = client.fulltext_search('ix_images', 'site_s:xxx AND keywords_s:yyy')
but this gives the same error as yours:
r = client.fulltext_search('ix_images', 'site_s:xxx AND
keywords_s:yyy&sort="clickrate_f desc"')
Then I saw this way
You don't pass in a query as a url encoded string, but rather a set of
parameters. So you'd call something like:
search_results = riak_client.fulltext_search(self.Result_Index,
'build.type:CI', group='on', 'group.field'='build.version')
Eric
On Aug 19, 2014, at 1:08 PM, Sapre, Meghna A wrote
Hi,
I am trying to use the group and stats options with riak search. I get
expected results with http urls, but not with python-riak-client fulltext pbc
search.
Here’s what I’m trying to do:
q = 'build.type:CI&group=on&group.field=build.version'
try:
search_results =
riak_