16

I'd like to construct a complex search that lists all questions with any of one set of tags and another tag.

For instance, I want to find questions tagged with "php" and any of a set of tags including [application-x, application-y, application-z].

1
  • There's also Stack Exchange Data Explorer aka SEDE though my experience recently has been that it times out if I try anything fancy. (Probably because my SQL sucks.)
    – tripleee
    Aug 24, 2016 at 2:59

1 Answer 1

12

The new nav seems to be able to do this with with is:q [tag] and [tag] or [tag]. For example, is:q [swift] and [python] or [ruby]

11
  • 2
    What is the precedence of operators? Does it search for [swift]+[iphone] or [swift]+[ios] or [swift]+[iphone] or [ios]?
    – A.L
    Aug 25, 2016 at 11:01
  • @A.L Through typical order of operations, it would be the second one.
    – krillgar
    Aug 25, 2016 at 14:40
  • Following the link from your "for example", search appears to not understand AND, but does understand OR. [swift] AND [iphone] OR [ios] results in questions tagged iphone or ios + swift, which contain the word and. Additionally, the left side appears to only allow a single tag. To return [swift]+[iphone] or [ios], you need to search [ios] OR [swift] [iphone]
    – Daniel
    Aug 25, 2016 at 14:48
  • @A.L or takes precedence
    – Braiam
    Aug 25, 2016 at 14:58
  • @Daniel I presume because undo assumed new nav, if you remove and it gives you the same tagged results, that contains swift and either iphone or ios.
    – Braiam
    Aug 25, 2016 at 14:59
  • @Braiam Presume what you like. I tested it. YMMV.
    – Daniel
    Aug 25, 2016 at 15:03
  • @Daniel the new nav accepts "and" keywords. I tested it too...
    – Braiam
    Aug 25, 2016 at 15:05
  • Perhaps the answer could clarify this only works for users participating in the new nav beta.
    – medmunds
    Aug 26, 2016 at 0:29
  • undo, if you are using is:q, forcing the /search, /search doesn't understand "and" as keyword. Only the new nav understands "and"
    – Braiam
    Aug 26, 2016 at 12:55
  • @Braiam The link given (changed it to be more extreme) works fine in incognito.
    – Undo Mod
    Aug 26, 2016 at 14:23
  • "results found containing: and; tagged with: python or ruby swift; search options: questions only" that's the result. The link tries to search for questions that contain "and", but this is not necessary.
    – Braiam
    Aug 26, 2016 at 18:21

You must log in to answer this question.

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