views:

13

answers:

1

querysets from django can be combined with a pipe like so:

q1 = Articles.objects.filter(name="goats")
q2 = Articles.objects.filter(name='cows')

q1 = q1|q2.

Is there a way to do this for sphinxquerysets? So far, I'm striking out.

+1  A: 

Why would you want to do something like this in Django? Pass the entire query to Sphinx & let it take care?

Or rather configure your Sphinx setup to search that way. i.e. switch on stemmer, switch on infixor prefix search (depending on your needs) etc.

So what I am trying to say is, one of the main purposes of using a 3rd party search setup is to let it handle the entire search load. So...

MovieYoda