apache / nano

Nano is now part of Apache CouchDB. Repo moved to https://GitHub.com/apache/couchdb-nano

Home Page:https://github.com/apache/couchdb-nano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about JSON-encoded parameters...

mattgrande opened this issue · comments

Hi there, I was doing a compare to see if I would have any problems upgrading from 6.1.5 to 6.2. It mostly looks fine, but one thing caught my eye...

In nano.js, currently line 511, there's this:

var paramsToEncode = ['counts', 'drilldown', 'group_sort', 'ranges', 'sort'];

Each of those query params are JSON encoded. As far as I can tell, those don't have a specific meaning in Couch, though... so why was that added?

https://github.com/dscape/nano/blob/master/lib/nano.js#L509

I guess this is was meant to be used with cloudant fulltext search: c03b552