Andreas, I've done this by searching the notes explicitly in matchesSearch rather than by including the notes in getField -- I wanted to restrict the 'fields' to document metadata, excluding more user-personal things like notes, filenames, keys, tags. It's in mercurial now. Cheers, John