ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.67k stars 387 forks source link

The "must" search operator in blevesearch can't be passed into ponzu #348

Open necokeine opened 4 years ago

necokeine commented 4 years ago

E.g. a query "+fielda:xxx +fieldb:bbb" will be recognized as " fielda:xxx fieldb:bbb" in ponzu, and got wrong search result.

necokeine commented 4 years ago

I fixed it locally with removing "url.QueryUnescape" in this line. https://github.com/ponzu-cms/ponzu/blob/9bc41b703131aa42ca64265ab6fdeadc37841e66/system/api/search.go#L34