Closed Wildanzr closed 1 year ago
This is not a Nano issue but I'll advise you anyway :)
Your design document is creating an index on three things:
fullname
username
_id
So a query involving all three items will hit the index, or hitting the first two and sorted by the second will work:
{
"selector": {
"fullname": "fullnameofdoctor",
"username": "usernameofdoctor"
},
"sort": [
"_id"
]
}
If you only want to query on fullname
then change your index to only index fullname
.
I have a simple document like this:
And the document design like this:
I want to implement rest api for this document with query included of page, limit, and search. The search query will be refer to fullname property of document. Then it will also sorting the result based of fullname in ascending. But I always got this error
Expected Behavior
I expected to got the result with sorted condition, but it always return error message.
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment