What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

When you search for something that doesn't return any results, the Suggestions on the No Results page are not working as they should.

For example, the following search returns no results:

csv [saveas] [powerbuilder]

The suggestions I get for my search are:

Suggestions:

Two issue here:

Firstly, I think the suggestions should remove the first word, remove the second word, ... remove the nth word and so on. In this instance, the second last and last suggestions are the same.

Secondly, the URLs for the suggestions don't remove the stuck-out word if it's a tag. The last suggestion's URL should be

http://stackoverflow.com/search?q=csv+%5Bsaveas%5D

since the [powerbuilder] tag is removed in the displayed font.

share|improve this question
    
Refresh the search suggestions page, see what you get. –  random Oct 26 '09 at 1:31
    
I get 3 results, with 1 duplicate, in a random order. In any case where the tag is displayed as being removed, the URL still includes the tag. –  glasnt Oct 26 '09 at 2:22

1 Answer 1

up vote 2 down vote accepted

The first one is by design for the moment; it picks strikeouts at random.

As for the second part, this is now fixed, but.. well, did you ever feel like you just walked through a sewer?

(?<=([\b ]|^))\[saveas](?=([\b ]|$))

The problem had to do with the definition of "word boundary" \b when applied to strings like [saveas]

share|improve this answer

You must log in to answer this question.

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