2

I tried entering [groovy] or [grails] -[gradle] in the search box, but I still get gradle-tagged posts in the results

1 Answer 1

1

Is a characteristic of the "or" operator to be parsed last. The results you are seeing is any question tagged groovy, or any question that is tagged grails but not gradle: (groovy) || (grails && !gradle).

If you want questions without gradle but with either groovy or grails, you must use double negation along with the or operator so it applies on both sides: [groovy] -[gradle] or [grails] -[gradle] (do not use the search box to type this and instead write it directly in the url, since the search box changes the ordering and skews the results).

I've pointed out this before, through I don't know if it's the desired behavior or not.

3
  • Isn't this the same as -[gradle] [grails] or [groovy]?
    – Ben
    Jan 25, 2015 at 19:46
  • @Ben nope, that would return this question which is tagged with [groovy]. The search isn't proceeded starting from left or right, but based on operators, starting by "not", then "and" lastly 'or".
    – Braiam
    Jan 25, 2015 at 19:51
  • If you use the search box that question is returned as it gets rewritten to what the OP has, but I can't find that question if I change the URL as you suggest... The operator order of precedence you suggest makes sense in that respect.
    – Ben
    Jan 25, 2015 at 19:57

You must log in to answer this question.

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