toastdriven/django-haystack — Issue #485: Sphinx RT Index Backend.
Author: btimby
Created: 2012-01-23 21:24:17+00:00
State: open

We use Sphinx for searching. Currently we are using SphinxSE to allow us to query Sphinx using the Django ORM.

However, we are planning a move away from SphinxSE, and our currently selected implementation will use Sphinx RT Indexes and Haystack for performing the search.

As such, I have started a Sphinx backend for Haystack that uses SphinxQL and Sphinx RT Indexes.

Sphinx RT Indexes differ from regular indexes because they are not built using the command line tool indexer. They are build by using SQL INSERT/REPLACE INTO/DELETE statements.

I think this is a better fit for Haystack than using indexer to build and the Sphinx Python API to issue search queries.

This is my first experience with Haystack, so I imagine I am doing quite a few things wrong and have cut a few corners at this point. The backend is located here:

https://github.com/btimby/sphinx-haystack/blob/master/sphinx_haystack.py

Currently it can perform simple searches against the index. I just wanted to send a heads-up so that I can get some feedback before moving too far down this path.