dcramer / django-sphinx

A transparent layer for full-text search using Sphinx and Django
http://groups.google.com/group/django-sphinx
BSD 3-Clause "New" or "Revised" License
357 stars 122 forks source link

SetSelect api command #15

Open oyiptong opened 14 years ago

oyiptong commented 14 years ago

Hi there, David

I did a quick job of adding in a SetSelect command. I'm sure you know about it, its very useful for using more advanced features of sphinx. It has been introduced in Sphinx 0.9.9 RC1

An example use-case is to find documents that have been published anywhere between a certain date range. http://sphinxsearch.com/forum/view.html?id=3577

Once SetSelect has been set, filters can be applied to the search query. http://www.sphinxsearch.com/docs/current.html#api-func-setselect

oyiptong commented 14 years ago

In addition to the SetSelect hack, I made SphinxQuerySet pickleable.

May prove useful.