django - How to intersect SphinxQuerySet with QuerySet -


Is it possible to override the two querysets: QuerySet of SphinxQuerySet and General Desgens?

I have to filter SphynxQuerySet. What is the best way to do this by filtering the default DJGengo?

I try to go in this direction: > <<> > <<>

But I think this is not the best way for my purpose.

There was a bug (one fixed now) in one of the Django-spinks at the point where the previous queries The filter was not being cleaned, which meant that I had to do full search without any filters and then had to pierce each other with the normal filter. This is how I did it:

  Get the first list of the parameters that match the object = object.Object filter (qset) .distinct () # afterwards mysql query for qs_ids = Save the ID [Object.id for object in the result] #sfinx query search_rode = object.search.query (search_art) # Manually sphinx queret result = [object object objects in search_parates if return results in qs_ids] Return results  

This spinks is not as efficient for filtering the course, but I had no choice at this time.

Perhaps you can think of your strategy again, do you need to manually filter your query?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -