[CPS-devel] Re: GROUP BY in portal catalog searchs

Olivier Grisel ogrisel at nuxeo.com
Fri May 12 11:20:13 CEST 2006


JoseLuis de la Rosa Triviño a écrit :
> Hello,
> 
>  
> 
> I need to carry out searches in portal catalog in such a way that I can 
> "GROUP BY" some fields of the contents as it can be achieved with SQL. 
> Is this implemented?
> 
> If not, may somebody give me some ideas of where is best to do it? in 
> CatalogTool? In search.py?
> 
>  
> 
> I need to group results by author, location (relative url), date, type 
> of content, etc.

You can sort the results to get a similar effect in the resulting list of brains.

You can add 'sort-order' ans 'sort-limit' keys in your query to do that.

-- 
Olivier



More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.