28

I'm trying to find out an old question I've answered several months ago, but I don't find yet an efficient way for searching. I remember the content of the question, but not my answer and I would like to retrieve my answer.

Is it possible to search (by keywords) questions I've answered?


Note: This question explains how to search in personal answers (but not how to search in questions to which I have provided an answer) with the following synthax:

user:me is:answer {search terms}

I want something like

iAm:answerer searchIn:question {search terms}

2 Answers 2

22

I don't think there is any such search option currently. One option is to use the Stack Exchange Data Explorer. You may run the following query:

SELECT q.* 
FROM posts q
JOIN posts a
ON a.parentid = q.id
WHERE a.owneruserid = 309086 
AND q.body LIKE '%search_term%'

Replace the owneruserid and search_term

2
  • 2
    You don't need the a.posttypeid = 2, only answers have a parentid.
    – Tunaki
    Mar 1, 2017 at 10:30
  • Thanks, it works well. As @Tunaki said, a.posttypeid = 2 seems unnecessary, I've updated your answer!
    – Mistalis
    Mar 1, 2017 at 12:32
8

Use Google: site:stackoverflow.com your keywords go here

This usually does it for me, without needing to use SEDE (Stack Exchange Data Explorer).

2
  • adding your name to the search query will generally narrow it down to questions you've asked or answered.
    – Joel
    Mar 3, 2017 at 1:31
  • @Joel: I actually got worse results (poor recall) when I added my SO username to the query
    – smci
    Mar 3, 2017 at 1:50

You must log in to answer this question.

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