Hi,

I am using the python api.

I need to do a key filter kinda like this.


"inputs":{
     "bucket":"impressions"
     "key_filters":[["tokenize", ":", 2],["starts_with", "2012"]]
   },
  

But from the python api docs...I have a query that looks like this.


query = client.add('impressions')
query.map("""function(v) { 
                         var data = JSON.parse(v.values[0].data); 
                         return [[v.key, data]]; 
                         }""")
for result in query.run():
    print "%s - %s" % (result[0], result[1])
    

Where and how do I place the key_filters[]?  

Thanks

Sent from my iPad

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

Reply via email to