Is it possible at all you indexed the documents using the Solr interface, and you're now trying to use them in a MapReduce query? If so, that won't work, because the get() call expects the objects with their respective bucket and key to exist in Riak KV, which means you'd have to index via a pre-commit hook and storing data in Riak directly.
Cheers, Mathias On Dienstag, 13. September 2011 at 17:20, idmartin wrote: > matt, > > I am using client.search() would the other method be better? > > Here is a snippet of the code. > > def search( self, bu, query ): > > if not self.bucket[bu].search_enabled(): > self.bucket[bu].enable_search() > > query = self.client.search(bu , query).run() > > data = '' > > for r in query: > > s = r.get().get_data() > > data += s['post'] > > return data > > It fails when trying to append data with a "nonetype" object, ive tried it > serveral other ways in the code itself, i always get the same result. > > last night i boiled it down to get() returing a riakobject but get_data() is > returning None. > > init() on the riakobject sets self._data = None. alls get_data() does is > return self._data. Somewhere along the line i assume the RiakObject is > supposed to populate the data but it doesnt seem to be happening. > > -- > View this message in context: > http://riak-users.197444.n3.nabble.com/Python-Riak-Search-Returning-NoneType-object-tp3317538p3332906.html > Sent from the Riak Users mailing list archive at Nabble.com > (http://Nabble.com). > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com (mailto: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