Issue #612 wontfix

Please allow "or" queries in the bug tracker

Benjamin Pollack
created an issue

When reporting issues to you guys, I'd like to make sure that the issue doesn't already exist. The easiest way to do that would be to see all bugs that are either open or are new. I have to do two queries to make that happen, which is too much work, so I don't bother.

Comments (4)

  1. Benjamin Pollack reporter

    Aha, got it. I guess I was noticing that groups are AND'd, but didn't realize restrictions within the group are OR'd. Given how small the bug tracker is, that's fine.

  2. Jesper Nøhr

    Well, I'd still like to toy with this at some point. A bit of a pain in URL syntax, though.

    foo=bar&foo=crunk&status=open becomes:

    (foo=bar OR foo=crunk) AND status=open

    It would be fun to have a way to turn it into:

    (foo=bar OR foo=crunk) OR status=open

    Maybe prefix fields with | and do it in sequence?

    Ben, any insight?

  3. Benjamin Pollack reporter

    To be honest, I'd just write a tiny parser to handle Google-style queries, if that's where you want to go with this. Then your URL would just be ?q=%28foo:bar%20OR%20foo:baz%29%20OR%20frob:quux. Writing a parser for such a simple grammar would be very easy, and let you eventually support more interesting arbitrary queries later on if you wish to. The only thing you'd lose would be the clean URL structure, but you could always just redirect users back to a clean URL if the query were simple enough (which the overwhelming majority of them almost certainly are).

  4. Log in to comment