208

I wonder if it is possible to search in just my favorited questions?

If not, can it be considered as a feature request?

13
  • 1
    Did you favorite every question?
    – juan
    May 18, 2010 at 15:24
  • 6
    Dupe: meta.stackexchange.com/questions/3683/…
    – squillman
    May 18, 2010 at 16:11
  • 4
    @squillman: now your comment seems too ironic.
    – perbert
    May 18, 2010 at 17:52
  • 1
    @voy infinite loop for the win!
    – squillman
    May 18, 2010 at 21:02
  • 13
    I think searching within favs is a good idea. Not because I have every question as my favorite but I do use favorite feature as bookmarking on SO.
    – sabertooth
    Aug 17, 2010 at 14:12
  • 12
    The option infavorites:1 was implemented in August 2010, but no longer supported since the new search was introduced early 2011.
    – Arjan
    Jan 26, 2011 at 23:58
  • 1
    Why is infavorites no longer supported? I use that search term a lot, and it's quite handy. (@Arjan's link is broken.)
    – Pat
    Jan 28, 2011 at 22:19
  • 4
    See also Reimplement the broken searching within favorites functionality. (@Pat)
    – Arjan
    Mar 4, 2011 at 14:55
  • Could the search hints page be updated?
    – M. Tibbits
    Jul 10, 2011 at 7:57
  • 3
    @Welbo'clock, favorites are somewhat like browser bookmarks And every decent browser provides a search feature for its bookmarks. Apr 12, 2012 at 6:36
  • Personally, I am giving up on favorites and just using bookmarks. I would rather that favoriting were disabled so that I would never have fallen into the trap of favoriting in the first place.
    – ftvs
    Apr 4, 2013 at 8:58
  • 1
    could we remove the status-completed tag? maybe this was removed by accident, in which case it is again a feature-request. if it was removed by intent (I hope not) then it would be now a status-declined.
    – n611x007
    May 3, 2013 at 10:57
  • 2
    fyi, it works again.
    – n611x007
    Jul 24, 2013 at 15:08

8 Answers 8

138
+150

From my original answer here:

I think the most flexible solution would be to add a search parameter infavorites:x that would allow searches on people's favourited questions.

The parameter x would be one of:

  • A numeric user id
  • mine, a shortcut to search your own favourites
  • all, to search in all users' favourites

This plays well with all the existing search parameters.

Since everyone's favourites are public anyway (and are included in the data dump), I don't see a problem exposing this type of feature in search.

12
  • 21
    Yes please! My favorites have gotten too much! I was actually looking for a way to filter/search all my favorites by tag.
    – gideon
    Jan 15, 2012 at 6:16
  • 1
    Not able to use this now, Is it still available? Please let me know any new syntax to search in favorites.
    – mtk
    Jul 20, 2012 at 13:45
  • @mtk: It existed at one time, but was removed when question search was rewritten.
    – Jon Seigel
    Jul 20, 2012 at 13:57
  • 2
    So, how to search in favorites now ? Have asked same question on meta here, Please reply if you know the answer.
    – mtk
    Jul 20, 2012 at 15:13
  • 1
    @mtk: You can't. Look at Revision 5 of this question -- it was implemented at one time, but was removed during the rewrite of the search code.
    – Jon Seigel
    Jul 20, 2012 at 15:16
  • 2
    This is now how it works, with the exception of the all option...that one's crazy expensive without an indexing change and can't see a real win by implementing it. That being said, we could do it a different way if it was really helpful. Jan 6, 2013 at 22:29
  • does this still work, with the new changes in the search system? it replaces mine to my user id, but there is no result. :(
    – n611x007
    May 3, 2013 at 10:51
  • if this is deprecated, could it be noted in the answer?
    – n611x007
    May 3, 2013 at 10:55
  • 2
    @naxa: This still appears as an option in the Advanced Search Tips. Go to meta.stackoverflow.com/search?q= and click the Advanced Search Tips link at the top right. The search box recognizes the option, but it doesn't seem to work very well.
    – Jon Seigel
    May 3, 2013 at 13:56
  • 1
    @JonSeigel yes I've tried it, but it didn't work. So do we have [status-needs-fix]? I suggested in the A's comment that the [status-completed] tag should be removed. Not only would that reflect the reality (in the sense that it's no longer 'complete' due to regression) but may also attract attention.
    – n611x007
    May 5, 2013 at 5:48
  • @naxa: I would suggest filing a bug report.
    – Jon Seigel
    May 5, 2013 at 17:15
  • @JonSeigel Wow thanks! That's pretty cool! Now I can search my favorites by tag! infavorites:mine [tag] :D
    – Meredith
    Jul 19, 2013 at 16:55
61

I currently have 1850 questions favorited for various reasons. Many of them have good answers in them (I can't favorite answers, grrr) or otherwise have information relevant to me. Some of them I want to track over a period of time. Some are just amusing or otherwise illustrative of programmer peculiarities.

I would welcome some kind of search facility on my favorites, even if it just found a keyword or two in the text of the questions or answers, or if I have to use a special string in Google to accomplish it.

Actually, filtering the favorites on a specified tag would work too.

1
  • 11
    Good point; very reasonable, I would say... +1 May 18, 2010 at 15:56
27

UPDATE: infavorites:mine has been implemented.

Only American spelling of favorites is supported.


I have found stackoverflow favorites organizer by googling.

It works well in Chrome but I had issues with it in Firefox. Not perfect but I managed to find the question I was looking for reasonably quick.

I hope infavorites:mine will be implemented soon.

4
  • 2
    infavorites:mine automatically got converted to infavorites:4790871 for me, which appears to implement everything desired. Horray Apr 6, 2018 at 15:57
  • Didn't auto-convert to me, but this happily indicated to me how to do it (find my user ID).
    – ijoseph
    Jul 10, 2018 at 23:26
  • I just wasted a few minutes of my life wondering why this wasn't working. It's because only American spelling of favorites is supported. That should be highlighted.
    – TRiG
    Aug 1, 2018 at 14:30
  • 1
    @TRiGisTimothyRichardGreen Sorry to hear that. :( I added that to the answer for future visitors.
    – Ali
    Aug 1, 2018 at 16:04
16

This could be part of an advanced search page.

4
  • 7
    s/could/should/r
    – perbert
    May 18, 2010 at 16:11
  • @perbert, what is the r modifier for s command? Havent found it anywhere :-)
    – Tomas
    Aug 12, 2011 at 23:33
  • 4
    @Tomas, s/r/g/g :P
    – perbert
    Aug 13, 2011 at 2:10
  • 1
    @perbert, uff, I searched all the manpages for that! ;-)
    – Tomas
    Aug 13, 2011 at 2:52
6

This has now been completed with the new elasticsearch engine, see here.

2

Yes, this can be done by adding to your search query the following:

infavorites:mine

So as an example, to find posts you favorited that have "notification" mentioned in the title you would type this in the search box:

notification infavorites:mine

A list of more search operators can be found on the help page here:

1
  • I just wasted a few minutes of my life wondering why this wasn't working. It's because only American spelling of favorites is supported. That should be highlighted.
    – TRiG
    Aug 1, 2018 at 14:30
2

Here is a JS snippet you can use as a bookmark. Mark the full code and drag it on your bookmark bar or paste it into the url field when editing a bookmark.

javascript:(function(){var i=$("input[name=q]").val("infavorites:mine ")[0];i.focus()})()

This bookmark can be used on all StackExchange pages to initialise a search in your favourites.

Remembering infavorites:mine in my rare cases that I actually need to search through my favourites was too hard for me, so I made this bookmark for me.

I also wanted to be able to use it on all of my StackExchange sites, so that's why the bookmark won't redirect you to any search site. Go to your StackExchange site of your choice and click the bookmark for the favourite search, afterwards.

EDIT: The code I provided above will not work on the main StackExchange site to search through all your favorites from ALL StackExchange sites, though. For a proper solution to this problem, please check Cross-site inbookmarks:mine search.

4
  • is there a way to search among the upvoted questions. also, how is the $ working in pure javascript, isn't it a jquery function, and you have not imported jquery?
    – vikrant
    Apr 26, 2020 at 9:46
  • 1
    @vikrant The $ is working, because jQuery is available and loaded on all SE sites. Remember that you execute the script in the scope of the website itself, when you click on the bookmark. It means that you can access all JavaScript objects that are available. So I used it, to make my snippet easier to understand. Apr 27, 2020 at 7:02
  • @vikrant Regarding searching upvoted questions. Have a look at stackoverflow.com/help/searching. As far as I know, you can search for upvoted questions by using score:50 (filter by 50 or more upvotes), however there is no way to find only your upvoted questions. Apr 27, 2020 at 7:06
  • thanks for clearing that up for me, i never thought about the 'scope' in which it is executing. also, i wanted to search among my upvoted questions, but apparently it doesn't work. from now on i will favourite every question i upvote.
    – vikrant
    Apr 27, 2020 at 7:10
0

I'm unaware of when (and why) this keyword changed, but the Search Help lists the following:

inbookmarks:mine

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