[Zope-CMF] Exclude from indexing...

Dmitry S. Makovey dmitry at athabascau.ca
Wed Oct 22 11:59:12 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On October 22, 2003 07:37 am, Florent Guillaume wrote:
> > Detailed:
> > I am working on workflow in which documents (Archetype content types) get
> > archived at the publishing time so when reviewer publishes content, copy
> > of it goes into the archive (another folder within Plone site). Now
> > problem is that I don't need/don't want to show archived copies in search
> > results. So I want to be able to navigate/link to them (archived copies)
> > but not to have them in portal_catalog.
>
> 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.

>
> It may be useful in other circumstances to search archived documents,
> for instance for administrators, so you'd need them cataloged.
>
> Florent

- -- 
Dmitry Makovey
Web Systems Administrator
Athabasca University
(780) 675-6245
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/lqlQyDrVuGfS98QRAjgjAJ0Uwm4UK4ez7qa1ESXJPLtssxjQsgCfcqH9
Rqv0mk9bV9cOp1xYp8VIza0=
=zsTs
-----END PGP SIGNATURE-----




More information about the Zope-CMF mailing list