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
    Oct 11, 2010 @ 16:05
    Ismail Mayat
    0

    move media event in umbraco examine

    Just been playing with the pdf indexing and its all working nicely.  Something I have noticed.  In my config i have

     <IndexSet SetName="PDFIndexSet" IndexPath="~/App_Data/ExamineIndexes/PDFIndexSet" IndexParentId="2188"/>

    I have another folder where i had pdfs but i dont want those indexed hence i have set IndexParentId which I am assuming will only index pdfs contained in that dir.  So if i create a pdf in my other folder it should not index i have checked the index it does not.  However if i move pdf from non indexed folder to indexed folder i.e. 2188 i would expect to appear in index however it does not.  It does however if after move I do full index rebuild.  

    I noticed in the code in UmbracoEventManager class we have media events AfterDelete and AfterSave not one for Move. Does there need to be one after move?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Oct 11, 2010 @ 17:43
    Ismail Mayat
    0

    Shannon,

    I have checked into svn a quick fix for the media move event that now picks on an index call when media item is moved.  However for a move and for newly created media item its not honouring the parentid set in the config so all pdf files are getting indexed.  if you do full rebuild then it does honour the parentid.

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Oct 12, 2010 @ 17:41
    Ismail Mayat
    0

    Shannon,

    Do you want to reply to this post and i can mark the updates you have made as solution to the problem and get yourself some well deserved karma.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft