Hi all,
I have a use case where I'd like to store the index of the to_id attribute of a relationvalue field in the portal catalog. My attempts and searches came up with nothing usable. How is this done?
Hi all,
I have a use case where I'd like to store the index of the to_id attribute of a relationvalue field in the portal catalog. My attempts and searches came up with nothing usable. How is this done?
Start by reading README.rst
of package plone.indexer
.
Cheers I guess,
Was having a senior moment
configure.zcml
<adapter name="kundenname_verweis"
factory=".indexers.getRelationToId"
/>
indexers.py
@indexer(ICustomSearch)
def getRelationToId(obj):
field = obj.kundenname_verweis
return field.to_id