If you want to have an open source index search, you can try out github.com/google/zoekt/ . See here for a demo site:
https://cs.bazel.build/For example: https://cs.bazel.build/search?q=r%3Atorvalds+meltdown&num=50 searches the Linux kernel for "meltdown"