Installing and compiling Sphinx edge with Libstemmer support for German, French, etc....

1 minute read

Out Of Date Warning

This article was published on 13/02/2012, this means the content may be out of date or no longer relevant.
You should verify that the technical information in this article is still up to date before relying upon it for your own purposes.

Using and installing the Sphinx Search Daemon with a wide range of stemmer, not only English <!-- more -->

cd mysrc
tar xf sphinx-2.0.3-release.tar.gz
cd sphinx-2.0.3-release/
cd libstemmer_c/
tar xf libstemmer_c.tgz
mv libstemmer_c/* . -f
cd ..
./configure --with-libstemmer
sudo make install

Then, the stemming can be activated for: danish dutch english finnish french german hungarian italian norwegian portuguese romanian russian spanish swedish turkish

In your sphinx.conf or config/sphinx.yml (thinking sphinx, the great Rails gem for managing Sphinx, sphinx.yml) set the new stemmers:

# sphinx.conf
morphology = libstemmer_de, stem_en

# or sphinx.yml
morphology: libstemmer_de, stem_en

So, more than one stemmer can be activated.

Reposted from