Thanks Pat. I didn't think this was possible. I will just have to get creative to make the results more distributed by using some more naturally distributed attributes for sorting.
I would be happy to be proven wrong too though :) Tom On Mar 30, 7:36 pm, Pat Allan <[email protected]> wrote: > Hi Tom > > I think you're right, and this isn't possible in Sphinx. You can group > results (by source, in this case), but that'll give you results like: > > - source 1 top result > - source 2 top result > - source 3 top result > - source 4 top result > - source 5 top result > - source 6 top result > > Which is halfway there, but about as close as I think is possible to > get. Happy to be proven wrong though. > > -- > Pat > > On 31/03/2009, at 5:24 AM, Tom Davies wrote: > > > > > This may not be possible to do natively in Sphinx but just on the off > > chance it is I wanted to pose this to the group: > > > Is it possible in Sphinx to distribute search results based on an > > attribute so that results will be evenly distributed? For example, > > Google will only show one or two results from a site so there is a > > good mix of sources for a given search. > > > So to give an example, say I have an attribute for the 'source' of the > > result. I would like the results to be sorted by relevance but > > limited to the top 1 from each source. However to add to this, I > > would like the remaining results for each source to be present in the > > results but only in batches of 1 per source. So, a result set might > > look like: > > > - source 1 top result > > - source 2 top result > > - source 3 top result > > - source 1 2nd result > > - source 2 2nd result > > - source 3 2nd result > > etc. > > > 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 -~----------~----~----~----~------~----~------~--~---
