[Zope-PTK] Parameters for searchResults
Dieter Maurer
dieter@handshake.de
Wed, 7 Mar 2001 23:38:00 +0100 (CET)
Adrian Madrid writes:
> What are the parameters for searchResults? From the
> recent_news method I can see four:
>
> portal_catalog.searchResults(
> meta_type='News Item',
> sort_on='Date',
> sort_order='reverse',
> review_state='published')
"sort_on", "sort_order" (or the aliases "sort-on", "sort-order"
which can only be used as mapping keys)
and any indexes you want to search (in the above example
"meta_type", "review_state").
You can add "subject", if you like.
More details:
URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html
Dieter