33

I realized that my tag wasn't catching , so I changed it to [java*] (like I saw somewhere here on Meta).

Then I realized that I was getting in my results too. I don't want to ignore JS, but I can't have it coming up when I click [java*] in my tag list. How can I watch [java*] without getting [javascript*] results too?


Not that this prevents anyone from tagging JavaScript questions with Java. That's a different issue.

9
  • 1
    I think [java] or [java-*] could do the job. Commented Mar 28, 2016 at 22:39
  • 3
    @Floern no, both would miss javafx Commented Mar 28, 2016 at 22:40
  • 8
    Think like a programmer. Add [javascript] to your Ignored Tags section. Commented Mar 28, 2016 at 23:06
  • 11
    @HansPassant Did you read what I wrote? I specifically said I don't want to ignore JS. Ignoring tags is not the opposite of favorite tags, because they are removed in most, if not all searches.( Just because I don't know a language doesn't mean I can't write a good answer for an easy question in that language.) Commented Mar 28, 2016 at 23:12
  • 27
    I ignored that. Commented Mar 28, 2016 at 23:13
  • Perhaps this should also be tagged feature-request? Commented Mar 29, 2016 at 0:26
  • 1
    @Tim I thought it might already be a feature. Commented Mar 29, 2016 at 0:34
  • 11
    How a stupid management/marketing naming decision in 1995 makes lives more complicated for thousands even decades later... Commented Mar 29, 2016 at 1:51
  • 1
    Better alternative: just squash java-\d tags into java. It will solve many problems. Commented Mar 29, 2016 at 3:19

1 Answer 1

23

Since you tagged this as , here's a search that will do what you want:

[java*] -[javascript*] is:q

This takes anything tagged as java*, then removes anything tagged with any form of javascript*. The is:q serves to force use of the search system; this overloads the normal tag system.

This probably won't work as a favorite tag, it will likely only work as a search.

1
  • Yes, I meant favorite tags. But your query should work for regular searches. (Note: I know both of these tricks, and -[javascript*] couldn't be conjoined into my single [java*] tag) Commented Mar 29, 2016 at 0:22

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.