Skip to main content

Documentation

Goal and usage

Add collective.noindexing to the eggs in your buildout. This makes two browser views available on the Plone Site root: @@collective-noindexing-apply and @@collective-noindexing-unapply. The first applies some patches and the second undoes the patching. Both can be called multiple times safely.

Patching only a single index (reindex, index, unindex) is also possible:

  • @@collective-noindexing-apply?no-reindex=1

  • @@collective-noindexing-apply?no-index=1

  • @@collective-noindexing-apply?no-unindex=1

Or combined: @@collective-noindexing-apply?no-unindex=1&no-reindex=1

Or all: @@collective-noindexing-apply

This patches some catalog methods so no indexing, reindexing or unindexing is done at all. The idea is that you use this package so you can quickly move a big part of your Plone Site to a different folder without having to worry about indexing. It really makes moving a lot faster. You do the indexing later, probably by doing a catalog clear and rebuild; you have a bit more control there about subtransactions, to help avoid a MemoryError or [Errno 24] Too many open files. A script to run the catalog clear and rebuild with some intermediate commits can help here for large sites.

Alternatives

  • Go to the archetype_tool object in the ZMI, and then to the Catalogs tab. Switching off portal_catalog in all the types there should have basically the same effect.

  • Add Products.QueueCatalog and Products.PloneQueueCatalog to the eggs of your buildout. In the portal_quickinstaller install PloneQueueCatalog. This renames the portal_catalog to portal_catalog_real and creates a ZCatalog Queue with the id portal_catalog. The standard settings worked fine for me. You now do that large move. In the fresh portal_catalog you go to the Queue tab. It should say you have lots of items in the queue, in my case around 12,000. Clicking the ‘Process Queue’ button will by default process just twenty items of that queue. You can increase that number. This is an easy way of avoiding MemoryErrors during indexing, as the total number of objects reindexed in one go will be as low as you want.

    Note that I tried this but ran into problems as this website had the portal_catalog in a separate CatalogData.fs, which worked fine until I restarted the zeoclient. With some tinkering it should work, but I did not want to bother with that. We can revisit that when indexing becomes a problem all the time instead of just once for a clear and rebuild.

Compatibility

Tried on Plone 4.3, 5.1 and 5.2, on Python 2.7 and 3.7.

For earlier Plone versions, please use version 1.4.

Authors

Maurits van Rees

Changelog

2.0.0 (2019-11-20)

  • Setup Travis. [gotcha]

2.0.0b1 (2019-11-11)

  • Removed support for Python 2.6 or lower and Plone 4.2 and lower. [maurits]

  • Added Plone 5 compatibility. Do not require Archetypes. [gotcha]

1.4 (2013-03-26)

  • make patching a single index method (index, reindex, unindex) possible [maartenkling]

1.3 (2012-09-24)

1.2 (2012-04-18)

  • Fixed the unapply method so a second apply will work correctly. [maurits]

  • Added tests with plone.app.testing. [maurits]

  • Added compatibility with Plone 4.1, by loading Products.CMFCore zcml for the permissions. [maurits]

1.1 (2011-01-04)

  • Moved most logging to debug level as it quickly becomes noise in situations where you most need this package. [maurits]

1.0 (2010-04-09)

  • Initial release

Metadata

Release files for collective.noindexing 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.noindexing 2.0.0
File Size Uploaded
collective.noindexing-2.0.0.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collective.noindexing 2.0.0
File Interpreter ABI Platform
collective.noindexing-2.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 24.5 kB

Release files / collective.noindexing-2.0.0.tar.gz

Download URL collective.noindexing-2.0.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
36d18730a07688f8e250cc210992547fd538ebd764fe93f9401e32b1931a2b58
BLAKE2b-256 checksum
How to use checksums
8dac484cf43ceb98f9d2d99402014d67ca774390e4e26d809e4f04350672ea59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

Release files / collective.noindexing-2.0.0-py2.py3-none-any.whl

Download URL collective.noindexing-2.0.0-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
067f22e6d8021c70da16df4357d53e3a052a4d1baab6fe4b7967d2fe880627f0
BLAKE2b-256 checksum
How to use checksums
b107a1da3661ff3972b6bc3cf8132cd57f67de7dba352953ed6a513c6c0aa64d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

1.0dev

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page