I scanned dozens of articles and forum threads, looked through official documentation, but couldn't find an answer. This article sounds promising, since is says that The data to be indexed can generally come from very different sources: SQL databases, plain text files, HTML files
, but unfortunately as all other articles and forum threads it is devoted to MySQL
.
It is rather strange to hear that Sphinx
is so cool, it can do this and that, it can do practically anything you want with any data source you like. But where are all those examples with data sources other than MySQL
? Just one tiniest and trivial step-by-step example of Sphinx
configuration when you want to scan the easiest source of data in the world - plain text files. Let's say, I've installed Sphinx
and want to scan my home directory (recursively) to find all plain text files, containing "Hello world". What should I do to implement this?
Prerequisites:
Ubuntu
sudo apt-get install sphinxsearch
- ... what is next????