Open rvanzon opened 7 years ago
Nobody has problems with sorting? Kinda stuck here..
You'll need to sort on a numeric field or an untokenized field, that's a Lucene restriction.
Ok, like we were talking about via Slack. Adding <string>
to the query fixes it.
...search/by_text?q=text:keyword&include_docs=true&sort=date<string>
As you mentioned, a fix is underway.
+1 for this. Trying to sort via Javascript date object (e.g. createdAt: 2018-02-01T14:26:47.668Z) and cannot get it to work. Either Error 500 without the
@carrotalan could you open a new issue with details please?
Hi,
I am trying to sort the results of my query, but it always results in a
{ code: 500 }
in the browser, couchdb-lucene outputs:I tried several indexes, from:
to
I am calling the latter with:
any ideas?