actually I tried but search query collection is empty. In a seperate message I have discussed with @Kishore Nallan bhai. I haven't completed the demo code yet so I thought someone would already have it implemented.
Normally I follow demos code of other features but couldn't find a demo of this one.