Hi,
I am trying to integrate Products.TextIndexNG3 in my Plone site. It works
very well. And I am customizing some stuff in an add-on for my sites.
But I noticed a strange thing which I can not explain. If you add e.g. a
text-file (ATBlob) to the plone site, the content of that text-file is added
twice to the SearchableText-index... Although that works, I don't find a
good explanation... (Tested on Plone 4.2.5 Unified Installer +
Products.TextIndexNG3 3.4.7.1). So my question is: is there a reason why
this is done?
I can reconfigure this behaviour in my add-on (so that is NOT the question):
configure.zcml:
<include package="z3c.unconfigure" file="meta.zcml"/>
<unconfigure>
<adapter
factory="Products.TextIndexNG3.adapters.plone_adapters.ATFileAdapter"/>
</unconfigure>
<adapter factory=".plone_adapters.ATFileAdapter"/>
plone_adapters.py:
from Products.ATContentTypes.interface.file import IATFile
from Products.TextIndexNG3.adapters.cmf_adapters import
CMFContentAdapter
from zope.component import adapts
from zope.interface import implements
from zopyx.txng3.core.interfaces import IIndexableContent
class ATFileAdapter(CMFContentAdapter):
adapts(IATFile)
implements(IIndexableContent)
Jochen
--
View this message in context:
http://plone.293351.n2.nabble.com/Products-TextIndexNG3-and-duplicate-content-in-SearchableText-index-for-ATBlob-tp7567516.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers