Copied to clipboard

Flag this post as spam?

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


  • Mus'ab 157 posts 385 karma points notactivated
    Oct 28, 2019 @ 14:19
    Mus'ab
    0

    how to disable Examine in Umbraco 8 ?

    Hi

    I am migrating a huge number of nodes it takes some time to create each node so I want to turn of examine indexing while creating nodes in order to make it faster as I heard, so how can I do that or any ideas to speed up creating nodes will be great.

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Oct 28, 2019 @ 16:39
    Søren Gregersen
    0

    Hi,

    You would have to create a composer to do this.

    Have a look at the docs here https://our.umbraco.com/documentation/Implementation/Composing/#disablecomposer--disable

  • Mus'ab 157 posts 385 karma points notactivated
    Oct 28, 2019 @ 18:19
    Mus'ab
    0

    Hi Soren

    Thank you for your help but how can i use disable with examine ?

    this is my code

    [Disable(typeof(ExamineManager))]
    public class MyComposer : IComposer
    {
        public void Compose(Composition composition)
        {
    
        }
    }
    
  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Oct 28, 2019 @ 18:32
    Søren Gregersen
    0

    Hi,

    You should disable the examine composer :-)

    I dont know if there is an “off switch”, but this would make it not registered, so unable to start.

    Also, arent there and overload on the contentservice, allowing you to prevent the (indexing) events to be raised?

  • Mus'ab 157 posts 385 karma points notactivated
    Oct 29, 2019 @ 08:37
    Mus'ab
    0

    Hi,

    i tried this code but its didn't work

    [Disable(typeof(IExamineManager))]
    public class MyComposer : IComposer
    {
        public void Compose(Composition composition)
        {
            composition.DisposeIfDisposable();
            ExamineComposer exComp = new ExamineComposer();
            exComp.DisposeIfDisposable();
        }
    }
    

    can you give an example ?

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Oct 29, 2019 @ 09:56
    Søren Gregersen
    0
    [Disable(typeof(IExamineComposer))]
    public class MyComposer : IComposer{}
    
  • Mus'ab 157 posts 385 karma points notactivated
    Oct 29, 2019 @ 10:02
    Mus'ab
    0

    Hi Soren

    its generate an error that i have to implement the interface what should i write in it ?

    enter image description here

    and the same with IComposer

Please Sign in or register to post replies

Write your reply to:

Draft