Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Sep 27, 2019 @ 16:46
    Ismail Mayat
    0

    Composing not replacing pdfindexer

    So,

    I have following code:

        [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.

    Anyone any ideas?

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Sep 27, 2019 @ 17:29
    Ismail Mayat
    2

    ok so after a tweet from jeavon, i had to add this to my class:

        [ComposeAfter(typeof(ExaminePdfComposer))]
    

    that did it.

    Cheers Jeavon

  • 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.

Please Sign in or register to post replies