[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public class TikaComposer: ComponentComposer<ExaminePdfComponent>,IUserComposer
{
public override void Compose(Composition composition)
{
base.Compose(composition);
composition.RegisterUnique<IPdfTextExtractor, TikaExtractor>();
}
}
It works on one site, latest umbraco and with media being stored locally.
Its basically replacing the pdf extraction part in pdfindexer.
I have another site same code, when i step through i can see the extractor being registered however it looks like its not being replaced and the old one is still being used. FYI the media on this site is in blob storage,however that should'nt be an issue as the getting of the file is handled by examine pdf indexer.
Composing not replacing pdfindexer
So,
I have following code:
It works on one site, latest umbraco and with media being stored locally.
Its basically replacing the pdf extraction part in pdfindexer.
I have another site same code, when i step through i can see the extractor being registered however it looks like its not being replaced and the old one is still being used. FYI the media on this site is in blob storage,however that should'nt be an issue as the getting of the file is handled by examine pdf indexer.
Anyone any ideas?
ok so after a tweet from jeavon, i had to add this to my class:
that did it.
Cheers Jeavon
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.