Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add add indexes method to api.portal #404

Open
MrTango opened this issue Jun 14, 2018 · 1 comment
Open

Add add indexes method to api.portal #404

MrTango opened this issue Jun 14, 2018 · 1 comment

Comments

@MrTango
Copy link
Contributor

MrTango commented Jun 14, 2018

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

@MrTango
Copy link
Contributor Author

MrTango commented Jun 14, 2018

maybe also allow to add a catalog column (meta data column) with the same method or another one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant