Add some offline operations for search
Thanks to @saturna for the initial implementation