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.

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to