4

I would like to search for specific keywords within posts containing a specific tag. I designed the following query on Stack Overflow:

[Tag] AND "search-string 1" OR " search-string 2" OR " search-string 3" 

I am not sure if the AND/OR is allowed since I do not receive the desired results since it incorrectly returns results for

[Tag] AND "search-string 1" AND " search-string 2" AND " search-string 3" 

In fact, it is also highlighting the words "AND" and "OR" in the return results

How can I design the desired search query?

4
  • 2
    OR only works between tags, not for regular search terms.
    – rene
    Jun 12 at 8:49
  • I see, thanks for your comment! Could you suggest a workaround or hint at how I can achieve this?
    – user92720
    Jun 12 at 8:53
  • 1
    You can use Google. For the "OR" query, search for "Tag" "search-string 1" OR "search-string 2" OR "search-string 3" site:stackoverflow.com. For the "AND" query, search for the same string after stripping every occurrence of "OR". Jun 12 at 11:25
  • 2
    This SEDE query might solve the issue: data.stackexchange.com/stackoverflow/query/…
    – rene
    Jun 12 at 14:03

0

Browse other questions tagged .