Plone 自定义类型的全文搜索';s TextField/RichWidget

Plone 自定义类型的全文搜索';s TextField/RichWidget,plone,archetypes,Plone,Archetypes,在搜索框中键入关键字,如日光(中文),我可以看到提示目标项目的实时搜索结果。它适用于Products.ATContentTypes类型(NewsItem,Page),但无法为自定义类型的项目找到相同的关键字。以下是该类型的部分代码: atapi.TextField( "历史",, storage=atapi.AnnotationStorage(), 默认\u输出\u type='text/x-html-safe', widget=atapi.RichWidget( 标签=u(u“建立历史”),

在搜索框中键入关键字,如
日光(中文),我可以看到提示目标项目的实时搜索结果。它适用于Products.ATContentTypes类型(NewsItem,Page),但无法为自定义类型的项目找到相同的关键字。以下是该类型的部分代码:

atapi.TextField(
"历史",,
storage=atapi.AnnotationStorage(),
默认\u输出\u type='text/x-html-safe',
widget=atapi.RichWidget(
标签=u(u“建立历史”),
description=u(输入建立历史记录),
行=20,
),
),

我确实尝试将
searchable=1,
添加到字段,然后重新编目,但仍然无法工作。我缺少什么?

在定义中添加关键字searchable=True

atapi.TextField(
"历史",,
searchable=True,
storage=atapi.AnnotationStorage(),
默认\u输出\u type='text/x-html-safe',
widget=atapi.RichWidget(
标签=u(u“建立历史”),
description=u(输入建立历史记录),
行=20,
),
),

确保将
searchable=True
添加到字段而不是小部件中。重新启动zope实例。您可能还需要更新现有对象的archetypes_工具中的模式。请向字段添加
searchable=True
,并将包安装在新的Plone实例中。还尝试了原型工具更新。问题依旧。