6

If you search for score:n where n!=0, it searches for posts with score>=n, but if you enter score:0 it searches for posts with zero score (only score=0). Bug?

  • 3
    Bug..? Feature! – hardmath Oct 11 '14 at 1:09
7

Two reasons:

  1. That's how it worked in the beginning, and that's what the syntax became. Eventually they added the range operators (..) so you could search for exactly a certain number, but it doesn't make sense to go back and change a syntax that users have already gotten used to.

  2. The syntax doesn't only affect the score search operator. It also affects the answer search operator. By searching for 0 you're actually searching for "none" - which is more relevant to the answers operator than the votes one. Searching for answers:0 will search for posts with no answers, which is extremely useful in many searches where a "0+" syntax would simply return all questions on the site and be effectively useless.

    The problem here is you don't want to have a syntax for one operator and a different syntax for another operator. Hence, the votes operator inherits the "only zero score" functionality from its answers operator relative.

    (Note the views operators does not follow this logic because it's not possible to have 0 views.)

1

No, because that makes sense to me. If you want score >= 0, use score:0...

  • 2
    But why score:1 (or -1 or 2) searches for posts with score of 1+ (or -1+ or 2+) score, while score:0 searches for the post of 0 score? – nicael Oct 10 '14 at 18:42
  • @nicael Because it makes some sense. If I want to find posts to vote on that are currently neutral, that's what I'd use. I don't have that need for posts score >= 1 – Undo Oct 10 '14 at 18:43
  • 2
    But it works the same way for -ive scores, which makes no sense. If I'm searching for downvoted posts, I don't also want upvoted ones, which is how it works now. score=0 matches exactly 0, score=-10 matches -10 up to +whatever. – Ward Oct 11 '14 at 4:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .