We have a really weird requirement, we need to perform searches on a
model for two (or more) different items which belong to a service
however we are not allowed to mix result sets together. What this
means is that we need to actually perform 2 distinct sphinx queries.
The problem is when I try and do this it ignores all searches except
the last one.
for example:
search_sets = {}
search_args1 = {:with => {:service_id => 1, :price => 0..100}}
search_args2 = {:with => {:service_id => 2, :price => 0..100}}
search_sets['1'] = MyModel.search(search_args1)
search_sets['2'] = MyModel.search(search_args2)
The results set is always the same for both. It seems to take the
last search that gets called and execute that for everytime the search
method gets called.
Any ideas? Thoughts?
I would love to be able to do 1 search and then split things out based
on service_id but I need to maintain pagination and it doesn't seem
like the grouping functionality is going to provide what I need.
Thanks,
~ Tom
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.