Hi, I have a site which has some custom Archtypes documents and I recently find out that when doing a search on the Plone site it doesn't return those documents when the search string is inside the documents' main body.
The documents' field is called "body" whereas on the default Archtypes is called "text" so the field wasn't indexed. I cataloged the body filed but still the searches doesn't return the documents. Which led my to the SearchableText index, which, correct me if I'm wrong, is the one used when searching. I created TTW an index which seemed to work fine, but then when I exported it to Generic Setup's xml it didn't work, see it below: <index name="SearchableText" meta_type="ZCTextIndex"> <indexed_attr value="SearchableText,getBody" /> <extra name="index_type" value="Okapi BM25 Rank" /> <extra name="lexicon_id" value="plone_lexicon" /> </index> Any idea why does this happen? Is this the correct approach on getting your custom fields be used when doing a search? I didn't find any literature apart from [1]. But that's a next step, first I need it to work, then I can tune it to not loose the cataloged data once upon reinstalling. Cheers, [1] http://maurits.vanrees.org/weblog/archive/2009/12/catalog -- *Gil Forcada** *C/Llacuna, 166 2n.2a (Edifici Llacuna) telf: 93.188.88.12 - 619.65.34.92 fax: 93.320.93.97 (08018) BARCELONA [email protected] www.usecm.com
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/product-developers
