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 <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