willholley commented on a change in pull request #808: Add selector support for 
json indexes
URL: https://github.com/apache/couchdb/pull/808#discussion_r138422123
 
 

 ##########
 File path: src/mango/test/mango.py
 ##########
 @@ -96,8 +96,11 @@ def create_index(self, fields, idx_type="json", name=None, 
ddoc=None):
             body["name"] = name
         if ddoc is not None:
             body["ddoc"] = ddoc
+        if selector is not None:
+            body["index"]["selector"] = selector
         body = json.dumps(body)
         r = self.sess.post(self.path("_index"), data=body)
+        print r.json()
 
 Review comment:
   stray debugging statement?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to