codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

Can't search for net negative votes, and trying it returns wrong results #1128

Open cellio opened 1 year ago

cellio commented 1 year ago

https://meta.codidact.com/posts/288180

It should be possible to search for net negative votes. For example, searching for votes:-2 should match posts with +2/-4, +10/-12, +0/-2, etc. But this doesn't actually work, and it instead returns all posts that otherwise match the search, i.e. this clause is ignored.

Two related issues, then:

  1. Can we allow searching for net negative votes?
  2. When part of a search is rejected for some reason, can we find a way to tell the user? (This also came up when someone tried to search for tags using SE's notation instead of ours -- it produced matches based on the text not the tag.)

If 2 is hard then let's split it off. Can we at least do 1?