33

Is there a way to search for a text in the comments I made? It was months ago that I made a comment on an answer for a question, can't remember the question title. I came across a new point of view which could help the OP so I'm trying to find the question. I found Search within a users answers but that seems to work for answers only, not the comments. I remember a few words I used in the comment I made so if there's a way to search f them I can find the comment, and the question.

5
  • 2
    only way I know of is Ctrl+f on here: stackoverflow.com/users/3309109/…
    – Tanner
    Feb 16, 2015 at 10:53
  • 5
    Nope, can't do it unfortunately. If you remember what was written in the comment then Google's not too bad at tracking it down. Just include your username, and that of your interlocutor if possible in your search.
    – Ben
    Feb 16, 2015 at 10:55
  • @Tanner I tired that but there are 45 pages of comments so I gave up after the 10th page.
    – artm
    Feb 16, 2015 at 10:58
  • 1
    @Ben That actually worked, thanks.3rd in the list. Used "artm keywords site:stackoverflow.com"
    – artm
    Feb 16, 2015 at 10:58
  • Glad to hear it @artm. Don't rely on it always working, but comments are indexed just like questions and answers so if you remember enough you have a good chance.
    – Ben
    Feb 16, 2015 at 11:05

1 Answer 1

38

Data Explorer is your friend! Here is a query letting you search within comments.

For example, you have posted 22 comments on Stack Overflow that contain "thanks" or "Thanks". :)

enter image description here

15
  • Doesn't seem to work Shadow. The text I was searching for was "beat me to it", google search found it but not this data search. Try "artm beat me to it site:stackoverflow.com" on google, it's the 3rd entry for me, the data explorer doesn't find it.
    – artm
    Feb 16, 2015 at 11:39
  • 1
    @artm whoops, case matters by default. Fixed now. :) Feb 16, 2015 at 11:57
  • 1
    @artm nope, MSO is a different site - and it will take a while before it reach SEDE anyway. :) Feb 16, 2015 at 12:00
  • 1
    Nice edit with " that contain "thanks" or "Thanks"" :)
    – artm
    Feb 16, 2015 at 12:01
  • Actually it might also contain "tHanks" but I'm too lazy to write all possible combos. :-D Feb 16, 2015 at 12:06
  • 1
    Sorry, not good enough Wizard, if you don't write all different combinations I'll revert my vote :)
    – artm
    Feb 16, 2015 at 12:08
  • Can't seem to run any queries. It always generates the error The target principal name is incorrect. Cannot generate SSPI context.. Though your second link works.
    – TLP
    Feb 17, 2015 at 15:41
  • 1
    @TLP probably related to the Stack Exchange downtime they had today, it's not specific to this query (trying to construct new query gives generic ASP.NET error page). The second probably works due to it being cached by others running it before. Feb 17, 2015 at 15:45
  • @ShadowWizard I see, well, guess I can try later. Thanks.
    – TLP
    Feb 17, 2015 at 15:51
  • @TLP meta.stackexchange.com/questions/249675/… (when it will be fixed, you can try again :)) Feb 17, 2015 at 15:56
  • @ShadowWizard Cool. :)
    – TLP
    Feb 17, 2015 at 15:58
  • Here's another one data.stackexchange.com/stackoverflow/query/73775/….
    – TLama
    Feb 18, 2015 at 10:57
  • @TLama yup, didn't think to search SEDE - honestly, in the few times I tried to search I always utterly failed so at some point I decided to simply write on my own whenever I can. :) Feb 18, 2015 at 11:24
  • it won't accept my username(101is5). I get the error: "Line 2: Incorrect syntax near 'is5'." Help?
    – 101is5
    Nov 12, 2021 at 10:38
  • 1
    @101is5 the original query look for user id not name, if you changed it to look for name, wrap it with single quotes, e.g. ... Where Name='101is5' Nov 12, 2021 at 17:41

You must log in to answer this question.

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