-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search drilldown fails with multiple parameters #148
Comments
glynnbird
added a commit
that referenced
this issue
Mar 15, 2019
3 tasks
glynnbird
added a commit
that referenced
this issue
Mar 18, 2019
* fix formatting of drilldown parameter for issue #148 * added tests * added README for drilldown parameter
FYI, new releases of CouchDB allow for new ways of supplying |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
db.search
function has an optionaldrilldown
parameter which can be eitheror
Expected Behavior
I should be able to supply an array on an array of arrays and have Nano produce the correct query string parameters.
Current Behavior
It is impossible to supply an array of arrays to
drilldown
. It incorrectly JSON.stringifies everything producing a server error.Possible Solution
qsStringifyOptions = { arrayFormat: 'repeat' }
to force the query string to becomedrilldown=["author","Dickens"]&drilldown=["publisher","Penguin"]
Steps to Reproduce (for bugs)
Context
The
drilldown
parameter is designed to allow a user to winnow their search results by facets within the result set. They can select individual facets (publisher = penguin) and the result set will only contain matching values. Multiple drilldowns can be selected to refine the result set further. Nano only allows a top-level drilldown because it incorrectly handles arrays of arrays.Your Environment
The text was updated successfully, but these errors were encountered: