fergiemcdowall / norch

A search server that can be installed with npm
655 stars 45 forks source link

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

Closed eklem closed 7 years ago

eklem commented 7 years ago

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 ?

fergiemcdowall commented 7 years ago

Seems to work now?

eklem commented 7 years ago

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

fergiemcdowall commented 7 years ago

Yes, IIRC I fixed it in search-index