39

I have a favourite canonical question for PDO problems, "How to squeeze error message out of PDO?"

It's been used many dozens of times, as the "linked" column on that question shows. In fact, there are so many entries that a "see more linked questions..." link appears.

However, the "see more linked questions" page shows only three links, because the url: search pattern is ignoring links in comments.

This doesn't make sense. Can this be fixed?

Also, I notice the links in the comments are all in the

https://stackoverflow.com/q/3726505/

format, while the URL search filter on the "see more..." page, by default, looks for

https://stackoverflow.com/questions/3726505/*

if comments were included here, they would be ignored anyway. Shouldn't the pattern rather be

https://stackoverflow.com/q*/3726505/* 

?

17
  • 1
    Good find. What an obscure bug =) Commented Mar 23, 2012 at 18:46
  • a bug .. it should be fixed
    – waffles
    Commented Apr 20, 2012 at 3:01
  • It also misses direct links to answers that are done using the "share" button. (Since those don't contain the question ID.)
    – Mysticial
    Commented Oct 27, 2012 at 19:39
  • @Mysticial I'm not sure I follow, they do contain the question ID? (eg. http://meta.stackexchange.com/q/126639/138112) or do you mean something else?
    – Pekka
    Commented Oct 27, 2012 at 19:40
  • 1
    These "stackoverflow.com/a/8391601/922184". 8391601 is the post ID and 922184 is the user ID. The question ID is 8389648 but is not in the URL.
    – Mysticial
    Commented Oct 27, 2012 at 19:42
  • @Mysticial ohh, I see. True. I wasn't sure initially whether that should be counted, but on second thought, it kinda makes sense!
    – Pekka
    Commented Oct 27, 2012 at 19:43
  • 1
    Don't forget about relative links, they should also be considered if possible
    – Jeremy
    Commented Jan 28, 2013 at 13:09
  • Gahh, I was just wondering about this the other day.
    – enderland
    Commented Apr 18, 2013 at 3:03
  • Wasn't this (at least partially) fixed? When I click on the see more linked questions link it contains the wildcards
    – SztupY
    Commented Apr 19, 2013 at 13:14
  • 1
    @BenCollins "fixed a long time ago" -- what makes you think so? I just tested this at The “I Get It” Reputation Problem - clicking "See more.." link shows only one (of 10) questions that were displayed in "Linked" section. This "test" has reliably failing for me for last few months, how does that qualify as "fixed"?
    – gnat
    Commented Jun 5, 2013 at 18:47
  • 1
    @gnat the thing I was referring to was having a query pattern that captured both /question/* and /q/* links. It does that now. What you're getting at is a separate issue that I am currently reviewing.
    – Ben Collins Mod
    Commented Jun 5, 2013 at 19:11
  • 2
    @gnat I'm going to take on the issue you emphasized (and actually, in fairness, it's the one referred to by the title of the question).
    – Ben Collins Mod
    Commented Jun 5, 2013 at 20:34
  • 1
    @BenCollins you sir are a gentleman and a scholar. Both tests I tried demonstrate that bug is fixed indeed. More linked... for "canonical PDO" now displays 43 questions, for "I get it" 13 linked questions are displayed. Thank you! One minor thing I noticed the page title is "Unanswered Linked Questions" where "unanswered" doesn't seem to make sense
    – gnat
    Commented Jun 10, 2013 at 22:01
  • @Ben 43 questions linked yay! Thank you!
    – Pekka
    Commented Jun 10, 2013 at 22:07
  • 1
    @gnat ah, I see. You meant the page title, and I thought you meant the header next to the tabs. I got it now. I'll fix it shortly.
    – Ben Collins Mod
    Commented Jun 11, 2013 at 15:44

3 Answers 3

9

Our approach to this will be to show a more true list of the linked questions when you click the "more linked questions" link, rather than relying on the search engine. Limitations of search preclude it from being as accurate as we want in this case. Also, it's worth pointing out for anyone interested that "Linked" here means questions for which there are links on this question page (embedded in the question, answers, or comments) or for which there are links on its page pointing to this one.

For example, Question A has an embedded link to Question B (A -> B). When viewing Question A's page, you'll see Question B in the "Linked" list in the sidebar. However, you'll also see Question A in the sidebar while viewing Question B, even though Question B may not have any embedded links to Question A.

5
+500

I agree, and it's pretty annoying!

This should be implemented because most of the time, the related questions are found in the comments and not in the answers (links are not proper answers). And as you don't always have the knowledge/time to answer properly, you just leave a comment with the link in order to help the poster of the question.

The meta is a good example of place where related question are linked within comments.

For example see this post that already has 2 "related comments". We can even go further with the Data StackExchange to find posts with the keyword related at the beginning of the comments. You can see this is something pretty common, so the "more linked question" should definitely show links from comments too! We get close to 300 results and that includes only the comments with that exact wording. By including other common wording the results go up really fast.


Maybe we could have an auto-comment a bit like the "possible duplicate" one, but with a way to "link" a post as related to another, and these would show on the page. That would look like "related to: [link]".


Also, it would be nice if at the same time the "see more linked question" brought us to a page with the is:question filter. I mean, I don't necessarily want to see all the 27 answers of a question in the list (and miss other related questions that could help me because they appear in page 2037). If I want to see all the answers on a question, I'll go on the link provided by the question.

4

I agree with this request.

But even if it's implemented, there's still the issue that questions newly marked as duplicates of other questions won't appear in the list of linked questions (even if closed:1 is given in the search query). That's because the search engine ignores the new duplicate blocks containing "This question already has an answer here" when indexing results. I've made a request for that on another question. Maybe that can be merged into this request.

You must log in to answer this question.

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