[Zope-CMF] Exclude from indexing...

Florent Guillaume fg at nuxeo.com
Fri Oct 24 09:45:11 EDT 2003


In article <200310220959.13827.dmitry at athabascau.ca> you write:
> > Why not always add
> >   review_state=['published', 'anyotherstateyouneed']
> > in the search call ?
> 
> This approach doesn't solve the issue with default search mechanizm in plone 
> when user can specify what he's looking for, and I *have to* not to show 
> "archived version" under any circumstances. I didn't want to go for search 
> page modification - I want to make something more flexible.
> So far I'm working on idea of using call to unindexObject() and making 
> ArchiveFolder class as subclass from ZCatalog so I'll still have catalog 
> searching capabilities in archive but this catalog would be separated from 
> portal_catalog. So far I don't see which problem it may bring up... I guess I 
> need to redefine calls to portal_catalog to local catalog engine but I'm not 
> quite sure how.

Well that's not my idea of being flexible (writing lots and lots of code
where a 2-liner in a skin fixes it), but it's your call.

Florent


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com



More information about the Zope-CMF mailing list