[Tracker-discuss] [issue129] Search does not look in messages

Martin v. Löwis metatracker at psf.upfronthosting.co.za
Fri Aug 17 12:43:33 CEST 2007

Martin v. Löwis added the comment:

> Indeed, and a reindex doesn't help either. 
> I remember having similar trouble before, but I thought I had squashed
> that problem. Obviously, we need to fix this before going live.

The problem seems to be in roundup. rdbms_common.FileClass.index says

  for prop, propclass in self.getprops().items():
    if prop == 'content' and propclass.indexme:

Now, msg.properties['content'].indexme is True (which is the default for
FileClass), however, FileClass.getprops() says

        Note that the content prop is indexed separately, hence no indexme.
        d = Class.getprops(self, protected=protected).copy()
        d['content'] = hyperdb.String()
        return d

As the comment says, this clears indexme, causing content not to be
indexed anymore. I'm not sure what the remark "is indexed separately"
tries to say.

One possible fix is to use

  for prop, propclass in self.properties.items():


Meta Tracker <metatracker at psf.upfronthosting.co.za>

More information about the Tracker-discuss mailing list