5

When I search for a set of tags (e.g. jsonschema and .net), answered and unanswered treat the query differently.

Answered seems to return questions that have BOTH tags.

Unanswered seems to return questions with either tag.

I'd expect to get a list of unanswered questions with BOTH tags.

Edit

I linked the queries, but for ease of reading, here are the URLs:

Answered: https://stackoverflow.com/questions/tagged/jsonschema+.net

Unanswered: https://stackoverflow.com/unanswered/tagged/jsonschema+.net

1

This is the default behavior of the Unanswered view - tags are ORd rather than ANDed.

To get the behavior you're looking for, you'll have to resort to an advanced search query: [jsonschema] [.net] isanswered:0 hasaccepted:0

This matches the behavior of the Unanswered page (no upvoted or accepted answers), but requires questions to match both tags.

  • But why is this the default behavior? It seems counter-intuitive to have one query AND while the other ORs. – gregsdennis Jul 24 '18 at 7:18
  • The why is connected to the default filters available for unanswered, @greg... Specifically, "my tags" - this wouldn't be at all useful with an "and"; you'd generally want to see questions in any of your tags, not questions that had all of them. – Shog9 Jul 24 '18 at 8:00
  • Then make the default for answered use an OR. I'm not so concerned with which is used so long as they're the same. It's the difference that's confusing. Also, it would be hard to implement some kind of UI that lets the user choose. – gregsdennis Jul 24 '18 at 20:00
  • Wouldn't* be hard... – gregsdennis Jul 25 '18 at 6:13

You must log in to answer this question.

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