For those interested in building their own local offline datasets/search engines check out Kiwix and Zeal. Understand how they work.
Code is open and there are a ton of already created data dumps + indexes. You don't have spend time rebuilding a Wikipedia/wikidata/stackoverflow dump and index by yourself.