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 10092 karma points MVP 2x admin c-trib
    Mar 06, 2013 @ 12:25
    Ismail Mayat
    1

    v6 GatheringNode data issue

    Guys,

    I am using v6.1 and am trying to wire up gatheringNodeData event I have the following code:

     public class ExamineEvents : IApplicationStartupHandler
        {
    
    
            public ExamineEvents()
            {
                Init();
            }
    
            private void Init()
            {
                LogHelper.Debug(typeof(ExamineEvents),debugMessage);
    
                ExamineManager.Instance.IndexProviderCollection[Constants.Examine.GeoTechIndexer].GatheringNodeData +=
                    GeoTechIndexerGatheringNodeData;
            }
    
            private string debugMessage()
            {
                return "initialised events for examine";
            }
    
    
    
    
            void GeoTechIndexerGatheringNodeData(object sender, IndexingNodeDataEventArgs e)
            {
                if (e.IndexType == IndexTypes.Content)
                {
    
                    AddToContentsField(e);
    
                }
            }
    }

    The event does not fire I also do not get my log statement going into the log.

    Any ideas?

    Regards


    Ismail

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 06, 2013 @ 12:32
    Jeroen Breuer
    1

    Some things have changed for Examine in v6.1: http://issues.umbraco.org/issue/U4-1356

    V6.1 is still in development so maybe it's not done yet?

    Jeroen

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 06, 2013 @ 12:39
    Ismail Mayat
    1

    Jeroen,

    Looks like the init method is being fired as i can see the log statement. However looks like the GatheringNodeData event is not being raised when item is published. Umbraco 6.0 it was working however it was ignoring supportUnpublished flag in the examinesettings.config.

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 06, 2013 @ 17:38
    Ismail Mayat
    101

    Ok got to bottom of this issue. Major fail on my part. In the examineSettings config i had not updated the supportProtected to true. Bascially the whole site is behind a login so all pages are protected examine out of the box will ignore those pages which makes sense!!!

Please Sign in or register to post replies

Write your reply to:

Draft