45

According to Searching, there is an inquestion:this operator to search for answers within the question itself. This is useful for questions with answers that span multiple pages.

However, it seems that this is currently malfunctioning and I was unable to get it to work.

Example post used: Why is it faster to process a sorted array than an unsorted array?

Incorrect results are shown for inquestion:this fail when on the question itself.

If the question ID is used instead, inquestion:11227809 fail - the expected results are displayed.


This issue was detected while development of my "Advanced Search Helper, Saved Search (Bookmarks), and Navigation Improvements" userscript, which builds advanced search queries.

enter image description here

8
  • 10
    For what it's worth: Repro'd (Latest Chrome / Win 10)
    – Cerbrus
    Commented Jul 4, 2018 at 7:08
  • 2
    By the way, miscellaneous tip: is:question can be shortened to is:q, and is:answer can be shortened to is:a.
    – Cœur
    Commented Jul 5, 2018 at 11:02
  • 3
    By "malfunctioning" do you mean that "this" isn't being substituted with the question id from Referer (sic)? It seems like that's just been turned off. user:me is working fine, though; perhaps this fell through their test-cases and they forgot to support it?
    – wizzwizz4
    Commented Jul 5, 2018 at 16:24
  • @Samuel Still working fine for me. Is there an update related to the retag?
    – 41686d6564
    Commented Mar 17, 2022 at 6:00
  • @41686d6564 Did you go to the example question, then type this in the search bar? inquestion:this fail
    – Samuel Liew Mod
    Commented Mar 17, 2022 at 6:15
  • @Samuel Yes. Using Chrome on Win10.
    – 41686d6564
    Commented Mar 17, 2022 at 7:17
  • Weird, might be a mod-only bug now...
    – Samuel Liew Mod
    Commented Mar 17, 2022 at 8:37
  • 1
    I am able to repro this on Main, but not on Meta, @SamuelLiew
    – JNat StaffMod
    Commented Mar 18, 2022 at 12:06

3 Answers 3

6

This feature depends on the users' browser sending correct Referer headers that contain a question id. Our server expects to receive the Referer in the format, Referer: https://stackoverflow.com/question/123, but does not in some cases.

The cases where we don’t send the Referer header are:

  • You haven’t opted into cookies
  • You belong to a Team and we can’t send Referer headers
  • Your browser is preventing the Referer header from being sent because of privacy concerns (not currently the default for any major browser)

These limitations can hinder the functionality of our feature. To address this issue, we have made modifications to our process to ensure that all users can utilize the feature without any hindrances.

Previously, we were relying on the Referrer in the request header. However, we have now decided to replace inquestion:this with inquestion:<questionId> before sending it to the backend. We believe this will fix this issue once and for all.

5

This is now fixed for public users, but not for teams. We're thinking about how to best address this balanced with security. For now, I'm calling this as it both:

  • Hasn't been used in Teams (we may just call it unsupported) and
  • Isn't nearly as useful there, with traditionally far smaller question/answer counts
0
2

Thanks for pointing this out. We are restructuring our index and in doing so accidentally broke this functionality. It has now been fixed.

4
  • Is the fix in prod yet? The issue is still there
    – Samuel Liew Mod
    Commented Jul 11, 2018 at 1:23
  • 1
    @SamuelLiew yes, it should be. Odd.
    – Haney Staff
    Commented Jul 11, 2018 at 13:51
  • I'm still seeing this issue.
    – Samuel Liew Mod
    Commented Jul 17, 2018 at 8:04
  • 1
    @SamuelLiew you're correct, and I've reproduced. We're working on a fix now, realistically could be 2-3 weeks.
    – Haney Staff
    Commented Jul 17, 2018 at 16:02

You must log in to answer this question.

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