fergiemcdowall / norch

A search server that can be installed with npm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor bug for the /totalHits and the /search endpoint ?

eklem opened this issue · comments

This works:
http://oppskrift.klemespen.com:3030/totalHits?q={"query":{"AND":{"*":["eple"]}}}

And this doesn't (gives you back all documents):
http://oppskrift.klemespen.com:3030/totalHits?q=[{"query":{"AND":{"*":["eple"]}}}]

Not sure why q should be able to be an array and not just an object? Same for /search ?

Seems to work now?

I'll test. This was something not working in search-index that is fixed now?

Yes, IIRC I fixed it in search-index