How can I search for two tags at once?
For example, search for all questions that are tagged with either or .

Search for:

[tag1] or [tag2]

or for

[tag1] [or] [tag2]

The or are inclusive.

If you want tag1 yet not also tag2:

[tag1] -[tag2]

As you certainly remarked just giving several tags is taken as 'and'.

One can combine these operators to get more complex queries but for too complex queries SEDE is likely better.

For some more details see How do I search for questions with (or without) specific tags?

  • Could I specialize the posted question even more? your [tag1]-[tag2] will help (is there supposed to be a space after [tag1] and the - sign?). How does one search one's own questions (separately, one's own answers to questions) tagged [tag1] but not [tag2]. I'm assuming one would need, e.g., in my case to somehow use user:9003 (or one's username?) along with syntax to indicate whether one is looking for all of one's questions (or answers), plus [tag1]-[tag2]? (Sorry, I can do basic searches but have trouble with more complicated searches... – amWhy Sep 14 at 21:15
  • ... e.g. "I want a list of all my answers to questions with the tag [abstract-algebra], but not with the tag [group-theory]." – amWhy Sep 14 at 21:16
  • Though tag or tag works, when I select newest I don't get the newest questions. I am using that with answers:0. I am using answers:0 to limit my use of MSE because the new MSE is harder to use. If the left side colume of little worth, were made a fixed header with an option for a floating header for those who just have to have it instantly, then the much prefered two colume layout could be restored. – William Elliot Sep 14 at 22:53
  • @amWhy yes user:theusernumber works to restrict the search; for oneself user:me works.For the specific one you can use user:me [abstract-algebra] -[group-theory] There must be no space after the minus, one before is not (at least not always) needed but it is normalized to that. – quid Sep 14 at 23:19
  • Thank you, @quid. So commas cannot be used as separators? e.g. user:me, [abstract-algebra] -[group-theory]? Or are such commas just ignored? – amWhy Sep 14 at 23:31
  • @amWhy space serves as separator there is no need for a comma. Commas sometimes seem to be ignored and could be used as a separator, but not always. I do not know the exact rules. – quid Sep 14 at 23:40
  • That's good to know. I had grown so used to "comma separated" fields for search; and perhaps some of my failures searching on MSE have been due to that, in some cases. – amWhy Sep 14 at 23:42
  • @WilliamElliot what else do you get? Are you sure you selected "newest" after the search? Can you post a screen-shot of the incorrect result? – quid Sep 14 at 23:45
  • It is much simpler live without 'or' than to chase out this bug. It is not making an annoying buzz unlike that new Big Bug. – William Elliot Sep 15 at 3:36

You must log in to answer this question.

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