Well at first I'm a bit confused in using the technique in the link which i attached.Now figured it out.I'm posting as answer so it may be helpful to someone.
Step 1
infavorites:2346461 OR infavorites:mine
It gave me the list of all my favorites.Here 2346461
is user id
Step 2
Now i entered the relevant words as search input
"nested attributes" "strong parameters"
Yes.now it gives the list of my favorites which contains those words.