Re: strange behavior with fulltext indexing

"David Glick (Plone)" <david.glick-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
On 9/17/15 1:03 AM, Johannes Raggam wrote:
> I have quite a strange behavior with fulltext indexing, which I do not
> fully understand.
>
> I use a custom indexer bound to a marker interface of a custom
> Dexterity content type. When I do a "clear and rebuild", or just clear
> the "SearchableText" index and reindex it again, all of my custom
> content types are not indexed - even some News Items aren't but some
> are.
>
> When I iterate over all custom content types, do a
> context.reindexObject(idxs=['SearchableText']), followed by a
> transaction.commit(), the same. Nothing lands in the SearchableText
> index.
>
> When I do a context.reindexObject() only on one custom content type
> object via plone.app.debugtoolbar, it gets indexed!
>
> Another content type gets normally indexed. It's nearly the same, just
> that the INameFromTitle and IDublinCore behaviors aren't activated but
> some others are.
>
> I use ZCTextIndex but also installed Products.TextIndexNG3. Same
> behavior for both.
>
> Any ideas how to debug that?
>
For starters, put a pdb in your indexer to make sure it's getting called 
and that it doesn't throw an AttributeError (which will cause ZCatalog 
to not index it)


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.