11

The answer summaries shown in search results appear to strip out code block markdown from the text. For example, the second item in this query doesn't show the code block markdown content of this phrase:

"As you remove characters, Cleaner becomes shorter, so you're likely to reach a point where x is too large."

screenshot

7
  • @bluet, I didn't think of looking on meta.so before posting - sorry! This is actually a problem on other stackexchange sites anyway - here's an example on codereview.se: codereview.stackexchange.com/… Jan 30, 2015 at 1:12
  • This is technically code between backticks, not just any Markdown. Jan 31, 2015 at 23:23
  • 1
    @Dan, I didn't say it was! I couldn't say how many forms of markdown are affected, but it's clearly a markdown issue. I've no doubt the extent of the problem will be clear once someone looks into it. Feb 1, 2015 at 1:08
  • 4
    I broke this intentionally a while ago, not considering the consequences of my actions. I'll work on a fix this week. It's trickier than it appears, if that makes anyone feel better. ;)
    – Haney
    Feb 2, 2015 at 17:51
  • 2
    @Simon since it's affecting network-wide, it's OK to post here without checking MSO first. Also, I tried to focus the problem on code-block first, since it's the only visible case (I prefer more focused bug report). If there is another markdown affected, feel free to incorporate to the question. In any cases, Haney should already know the cause :) Feb 3, 2015 at 6:20
  • 2
    I've got a fix in place. We're waiting until the weekend to deploy it because it requires a full re-index which blocks devs. I'll be kicking off the fix Friday evening EST time so that it should be working again Saturday by noon EST. A re-index is currently 27.2 million records, so it takes a while. ;)
    – Haney
    Feb 3, 2015 at 19:20
  • 3
    I'm deploying the fix now. ETA ~8 hours.
    – Haney
    Feb 8, 2015 at 17:41

2 Answers 2

4
+50

Thanks for bringing this up. I broke this intentionally a few weeks back, without properly considering the implications of my actions. It has now been fixed. Super sorry for the inconvenience! Please check now and you'll find that code once again appears in search results.

8
  • So, status-completed? :) Feb 9, 2015 at 15:15
  • @ShadowWizard ahh yes, thanks!
    – Haney
    Feb 9, 2015 at 15:41
  • 1
    Thanks, and enjoy the incoming bounty! (if bluet won't forget ;)) Feb 9, 2015 at 15:42
  • Thanks @Haney! If it's not giving away internal secrets, would you mind explaining why you broke it intentionally? Feb 9, 2015 at 20:35
  • 1
    Sure @SimonMᶜKenzie - the tl;dr is that we were analyzing code and post body with the same search analyzer. I separated out code into its own field, analyzed in a way more appropriate for code, however this removed it from body. So now, code and body are still their own independent fields, but I display a new field, bodyWithCode in the results to give you a proper experience. bodyWithCode is not searched, just displayed. :)
    – Haney
    Feb 9, 2015 at 20:37
  • Also, we have very few internal secrets: most of them are related to finances of the company. We are Default Public.
    – Haney
    Feb 9, 2015 at 21:26
  • 1
    @Haney great, so where can I find copy of the code behind? :-D Feb 10, 2015 at 10:02
  • 1
    @ShadowWizard what code behind? This thing runs of magic unicorn dust.
    – Haney
    Feb 10, 2015 at 21:47
4

This was fixed earlier by Haney

I'm deploying the fix now. ETA ~8 hours.

It appears as though the re-indexing is completed (or getting close to it). The search query referenced now displays the second result correctly.

The second result has some code

You must log in to answer this question.

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