I search [c] [function]
no results. I search c function
Java results. Simply, how do I do what I am describing? How do I search for 2 tags at the same time?
-
Works fine for me: stackoverflow.com/questions/tagged/c+function– dbcJan 23, 2020 at 3:12
-
Does this answer your question? Multi tag search of questions– Robert LongsonFeb 1, 2020 at 7:44
1 Answer
If you want to get a list of questions tagged with both c and function, then you should use the following search query:
[c] [function] is:question
which will return the following page worth of results:
https://stackoverflow.com/search?q=%5Bc%5D+%5Bfunction%5D+is%3Aquestion
Note that there is an implicit Boolean AND operator between the two tags.
If you omit the is:question
option, then you will get far more results, since answers will also be included.
You can get the same results using the "Filter" widget, which allows you to enter the tags graphically (and obviates the need for the explicit is:question
option):
The result is this URL: https://stackoverflow.com/questions/tagged/c+function
If you want to search for questions tagged with either c or function, then you should use the following search query:
[c] or [function] is:question
which will return the following page worth of results:
https://stackoverflow.com/search?q=%5Bc%5D+or+%5Bfunction%5D+is%3Aquestion
Note the use of the Boolean OR operator between the two tags.
You can use the same Boolean OR operator in the "Filter" widget:
The result is this URL: https://stackoverflow.com/questions/tagged/c%20or%20function
-
As a small addendum, a query of the form
[c] or [javascript] [function]
will return functions tagged asc
orjavascript
and in either case containfunction
. So it's resolved as if the expression was "(c
orjavascript
) andfunction
". However, I don't think you can do something like "(c
andfunction
) orjavascript
" for eitherc
+function
tags on a question or only thejavascript
tag on a question. I believe there was a feature to add grouping syntax that but I don't think it was done (also I can't find it).– VLAZJan 23, 2020 at 8:32