Install a Sphinx Engine

If you would like to use our extension with Sphinx Engine, you need to setup it. To do it run following commands via SSH as root or using sudo:

wget http://sphinxsearch.com/files/sphinx-2.2.6-release.tar.gz
tar xvf sphinx-2.2.6-release.tar.gz
cd sphinx-2.2.6-release
./configure
make
make install

Configuration file will be generated automatically.

Extension reindex Sphinx Engine indexes by default magento cronjob. Check How to set up CRON Job for Magento.

How to install Sphinx Engine with Stemmer (language specific morphology)

Libstemmer supports morphology of following languages:

  • danish
  • dutch
  • english
  • finnish
  • french
  • german
  • hungarian
  • italian
  • norwegian
  • porter
  • portuguese
  • romanian
  • russian
  • spanish
  • swedish
  • turkish

To install Sphinx Engine with libstemmer run following commands via SSH as root or using sudo:

    wget http://sphinxsearch.com/files/sphinx-2.2.6-release.tar.gz
    tar xvf sphinx-2.2.6-release.tar.gz
    cd sphinx-2.2.6-release
    wget http://snowball.tartarus.org/dist/libstemmer_c.tgz
    tar xvf libstemmer_c.tgz
    ./configure --with-libstemmer
    make
    make install

Then in file app/code/local/Mirasvit/SearchSphinx/etc/conf/section.conf add codes of additional languages to variable morphology. List of codes for different languages http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.

To add German to list of supported languages, you should have morphology = stem_enru, libstemmer_de in section.conf.

Run full reindex of Sphinx Engine indexes after changes.

How configure charset tables?

charset_table is the main workhorse of Sphinx tokenizing process, ie. the process of extracting keywords from document text or query text. It controls what characters are accepted as valid and what are not, and how the accepted characters should be transformed (eg. should the case be removed or not).

If charset table is configured for special language chars search phrases kottkvarn and köttkvarn will return the same result.

To configure charset_table, you need in the file app/code/local/Mirasvit/SearchSphinx/etc/conf/section.conf add charset table for variable charset_table. List of codes for different charset tables http://sphinxsearch.com/wiki/doku.php?id=charset_tables

Next Step:

Advanced Sphinx Search Pro