5

If I type this in the (main) search box:

[visual-studio] "Unexpected Null"

It changes my search query to:

"[visual-studio] "Unexpected Null""

I can change my query to anything that ends in "Null":

[visual-studio] "Unexpected Quotes around Null"

[visual-studio] "Something is Null"

And if it returns any results at all, it adds quotes around the entire search query.

This seems to only happen when the tag has hyphens in it ([javascript] tag doesn't trigger it, [windows-service] does).

Firefox Windows 10

20
  • Are you referring to the text that appears at the top? results found containing unexpected null "[visual-studio] " ""
    – Kevin B
    Commented Jan 3, 2018 at 20:52
  • 1
    @KevinB, no the search box itself changes.
    – NH.
    Commented Jan 3, 2018 at 20:53
  • Not happening here.
    – Kevin B
    Commented Jan 3, 2018 at 20:53
  • Attention, Bizarre Bug Department... we have a situation!
    – NH.
    Commented Jan 3, 2018 at 20:53
  • 1
    Ah, i see, it is happening, what it's doing is redirecting you because it found no results. It's trying something else that does have results. Could not find any results for [visual-studio] "Unexpected Null"; showing 17 results for "[visual-studio] "Unexpected Null"",
    – Kevin B
    Commented Jan 3, 2018 at 20:54
  • 2
    @KevinB why would restricting the search to an exact search produce more results?
    – NH.
    Commented Jan 3, 2018 at 20:54
  • 1
    because with the updated search term it's looking for the words 'visual' and 'studio' which does have results, rather than looking for results within that tag.
    – Kevin B
    Commented Jan 3, 2018 at 20:55
  • 2
    i mean, looking at the results, it's obviously not doing an exact search. Whether or not that's a bug, i dunno.
    – Kevin B
    Commented Jan 3, 2018 at 20:58
  • Sounds like a bug to me... hence bug
    – NH.
    Commented Jan 3, 2018 at 21:03
  • And actually searching for "[visual-studio] "Unexpected Null"" returns 122 results. Not 17. Looks like you need to search [visual-studio] "[visual-studio] "Unexpected Null"" to get the 17. Commented Jan 3, 2018 at 21:07
  • My point was more so that the quotes showing up can be explained, though the results by doing so are weird. your question seemed to focus on the quotes.
    – Kevin B
    Commented Jan 3, 2018 at 21:08
  • I think the new query it tried should not include the tag within it, or, at least not include the tag as part of the quoted text. that just seems really odd. I can think of situations where that makes sense, for example if you wanted to search for questions that contained "[foobar]". first it would do a tag search, and then upon finding nothing it would do a text search. but... it doesn't even do that. it just tells you there's no results without giving any indication that it tried any other combinations, unlike what you observed with your query.
    – Kevin B
    Commented Jan 3, 2018 at 21:23
  • For me the tag doesn't matter. All that matters is that the exact string isn't found. For example, the search [visual-studio] "is null" doesn't mess up. But [javascript] "exact string not found null" does. This seems to confirm @KevinB's idea that it's a redirect or other logic at play trying to "fix" your search to produce any results.
    – ryanyuyu
    Commented Jan 3, 2018 at 21:43
  • i recall a meta post recently that mentioned this being something they're working on, but i can't find it.
    – Kevin B
    Commented Jan 3, 2018 at 22:08
  • 2
    At that rate, why even attempt a quoted search at all? When done correctly, results without quotes are guaranteed to be equal to or higher than results where only the exact phrase is returned. Also, I've noticed this behavior on Chem.SE too, so maybe this should be on Meta.SE instead of Meta.SO.
    – NH.
    Commented Jan 5, 2018 at 16:34

0

You must log in to answer this question.

Browse other questions tagged .