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 <alex.rosa....@gmail.com> wrote: > 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 PM, Alex De la rosa <alex.rosa....@gmail.com > > wrote: > >> 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 works: >> r = client.fulltext_search('ix_images', 'site_s:xxx AND keywords_s:yyy >> SORT:"clickrate_f desc"') >> >> So try chaining parameters with semicolons. >> >> Thanks! >> Alex >> >> >> On Tue, Aug 19, 2014 at 10:08 PM, Sapre, Meghna A < >> meghna.a.sa...@intel.com> 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_client.fulltext_search(self.Result_Index, q) >>> >>> except Exception as e: >>> >>> print e >>> >>> log.exception(e) >>> >>> >>> >>> This throws an error: no field name specified in query and no default >>> specified via 'df' param. >>> >>> >>> >>> The same query string works without the group options, and the complete >>> string works in the http API. >>> >>> Any suggestions on how to make this work? >>> >>> >>> >>> Thanks, >>> >>> Meghna >>> >>> >>> >>> _______________________________________________ >>> riak-users mailing list >>> riak-users@lists.basho.com >>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >>> >>> >> >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com