I'm looking for a tool that will allow me to run exact queries (and with this I mean searching for something like def main(s: Array[String]): Unit = {, containing any kind of symbols, over a set of directories in my hard-drive that can span tens of Gigabytes worth of files). The files will be periodically updated, so there should be a way to update the indexes efficiently. Optionally it would also be able to search for regex expressions, but that would also only be a nice to have. The returning results for a query should file the filename and the surrounding text.

The search should give the results back fairly quick (sub-second, ideally).

I'm aware of tools such as Elastic Search, but they seem to be targeting word search, not really "exact search". Or am I wrong?

I already did a prototype of something similar just for fun, but I'm right now deciding if I should proceed forward with this to solve my real world business issue, or just use a battle-tested, open-source solution instead.

  • 1
    how about the software choices? gratis, proprietary or any other things?
    – phuclv
    Sep 13, 2018 at 1:47
  • other things like which operating system should it run on? Sep 13, 2018 at 9:07

1 Answer 1


Free, multi-platform, fast, source code, ... (Some of these index inside compressed files, perform OCR, thesaurus search for similar words, SQL database indexing, provide instant results instead of waiting a second, etc.)

In order from simple to complicated and powerful:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.