After trying Chris's patch for File Indexing (patch
#1465604), I found an additional issue when using
Lucene as the indexer: attachments were still being
indexed with the owning document.
I have made an additional change to TextContentProvider
which should prevent this from happenening. It is
similar to the existing change in
ContentItemMetadataProvider.
attachment indexing patch
Logged In: YES
user_id=1069385
Another Issue I've just spotted - Although items can be
indexable or not, this only applies when items are new -
if an items becomes non indexable when edited then it
remains in the search results.
The example I have hit is in moderated forum posts. Until
they are approved they are not indexed. But if they are
approved and subsequently rejected they remain in search
results.
I have coded the fix, and will submit the change as an
additional patch to be applied over these first two once I
have tested it.
I have also renamed the new method in MetadataProvider
interface to isIndexable as suggested by Steve as it does
sound much more correct.
Chris.....
Logged In: YES
user_id=1069385
Integrated to trunk at R1259 - 1262. See comments in Patch
1465604 (File Indexing)