Closed wesleybl closed 3 months ago
When I removed the plone.blocks
behavior from the content, my behavior field was added to the SearchableText
.
@wesleybl I think this is the same issue as https://github.com/plone/plone.restapi/issues/1744, right?
@davisagli oh yes it is the same issue.
@davisagli regarding compatibility with Plone 5, can we use zcml:condition
?
@wesleybl Probably. I didn't find time to think about it in detail yet.
Closing because it is a duplicate of: #1744
I wanted to add a field from a behavior to the
SearchableText
index of a Plone base content. So I did as the documentation shows:https://6.docs.plone.org/backend/indexing.html#textindexer
In other words, I created a behavior similar to:
But the do field has not added to
SearchableText
.The base content uses the
plone.blocks
behavior. Content that uses this behavior has aSearchableText
definition:https://github.com/plone/plone.restapi/blob/a29583a51b58b0245ce0d58acf1e518f49367131/src/plone/restapi/indexers.py#L111
Maybe this index should use Extending indexed data?