Yup, you can set up grouped queries using the following options in your #search calls:
* :group_by (attribute name as a string if you're using :attr) * :group_function (:day, :week, :month, :year, :attr, :attrpair) * :group_clause (how to sort the groups) Grouping doesn't get used much by most people from what I've found, hence why documentation hasn't received as much love as it probably deserves. -- Pat On 23/04/2009, at 4:37 PM, bikash wrote: > > Hi all, > while playing with sphinx search command, i found -gs(groupsort) > option that allows us to sort group by expr and while running in CLI, > it worked for me. so is there any search option in TS that maps to > this > (-gs) option? > Thanks. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
