My goal is to have only the first name and the last name of a contenttype person in SearchableText. All other contenttype's SearchableText need to stay like they are.
collective.dexteritytextindexer.behavior.IDexterityTextIndexer is active on contact.
That's how SearchableText looked before i started (fieldname == field value):
['lastname', 'firstname', 'title', 'description', 'description', 'title', 'richtext1', 'richtext2', 'id', u'1']
Note that title and description are in the list 2 times.
Since we use the IDublinCore-Behavior I tried to remove title and description with the following code.
from collective.dexteritytextindexer.utils import no_longer_searchable
...
no_longer_searchable(IBasic, 'title')
no_longer_searchable(IBasic, 'description')
So i got:
['lastname', 'firstname', 'description', 'title', 'richtext1', 'richtext2', 'id', u'1']
Now title and description are in the list only 1 time. Does anyone know why?
As far as I unterstand this is a "global" solution, which influences all contenttypes. Right?! If so, how do I change only SearchableText of contenttype contact?