Skip to content

Add add indexes method to api.portal #404

@MrTango

Description

@MrTango

adding indexes to the portal_catalog is not easy or at least not well documented and it's not recommented to do it with generic setup profiles, because of the lag of reindexing options and the rist of empty indexes on reinstalling the addon.

We have good examples how to do it in a setuphandler, but this could be solved once and for all by providing a central method in CMFPlone in utils or so and add this also to the plone.api.portal module.

for example code see https://gist.github.com/MrTango/0ec0c0830fec0b9626d2cbdc69cf20cf

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions