将索引添加到自定义目录
我正在为不同类型的对象创建多个目录,希望能够加快速度并减少冲突。我一直在使用此文档:
网站构建没有错误,目录已创建,但索引和元数据列不会添加到目录中。
我尝试向catalog.xml 添加一个新块,但失败并出现以下错误:
ExpatError: catalog.xml: junk after document element: line 158, column 0
这是我的新块开始的行 - 我猜测catalog.xml 用于portal_catalog 而不是其他。
我发现了一个听起来很明显的函数,名为 ZCatalog.py/addIndex()...
但我的问题是 - “最佳实践”是什么样的?我真正想要的是找到一个在安装时添加多个目录和索引的项目的活生生的例子。
文档链接也将是一等奖。
感谢您到目前为止的宝贵时间。 并且提前。
I'm creating several catalogs for different types of objects, hoping to speed things up and reduce conflicts. I've been working with this document:
The site builds without errors, the catalog is created, but the indexes and metadata columns don't get added to the catalog.
I've tried adding a new block to catalog.xml, and that fails with the following error:
ExpatError: catalog.xml: junk after document element: line 158, column 0
Which is the line that my new block begins - I am guessing that catalog.xml is for portal_catalog and no other.
I've found an obvious-sounding function called ZCatalog.py/addIndex()...
But my question is - what does 'best practice' look like? What I'd really like is to find a living example of a project that adds multiple catalogs and indexes on installation.
Documentation links would also be first prize.
Thanks for your time so far.
and in advance, too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通常添加安装代码来为我执行此操作 - 我不认为catalog.xml 文件可以处理其他目录。
只需将类似的内容放入导入步骤方法中即可。
I've usually added install code to do this for me--I don't think the catalog.xml file handles additional catalogs.
Just put something like that in an import step method.