2

Aug

Filed in Code, Django |

I was working on our search for the new iBegin today, which utilizes Sphinx, Django, and obviously, django-sphinx. Being the person who hates doing tedious work, I found a few issues in the newly done configuration generation.

  • Errors hardcore in 0.98
  • It wasn’t generating attributes for floats (latitude/longitude)
  • Didn’t work with custom index names

So tonight, after a few hours, I’ve refactored a good chunk of the manager code, as well as the config generation code. Among the updates include:

  • There is now an included api for 0.98, as well as proper configuration generation. To use it simply do the following in settings.py:
    SPHINX_API_VERSION = 0x113
  • The api support is very flexible for future versions (just requires override templates and inclusion of the api).
  • The generation command via manage.py now properly generates sample config for ANY model with Sphinx attached to it.
  • You can now pass the UpdateAttributes() command via instance.sphinx.update(kwargs).

As always, grab the code over at Google and make sure to subscribe to the Google group to be spammed with updates.

  • http://www.appoil.com sean

    i’m trying to do some fulltext search upon django,
    thanks for the tips

blog comments powered by Disqus