Copied to clipboard

Flag this post as spam?

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


  • Tobias 9 posts 29 karma points
    Sep 06, 2013 @ 11:28
    Tobias
    0

    No hits from Media search

    Having some problem getting hits from media items. Tried all settings i could think of. Rebuilt index and so on. 

    Im a nuub both with Umbraco and with examine so i maybe i am doing something wrong.

    Tthough i do get hits when i remove query.Append("-template:0 "); from ezSearch.cshtml. (row 68)

    is it a bug? What am i doing wrong? 

    Otherwise, GJ with the plugin :)

    //Tobias

     

     

     

     

     

     

     

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Sep 06, 2013 @ 12:11
    Matt Brailsford
    0

    Hi Tobias,

    It sounds like it might be a bug. The -template:0 filter removes nodes that don't have templates (ie, just data nodes that you wouldn't want people to navigate to) so it might be that I need to make it more explicit to only apply that rule to content nodes.

    If you don't have any "data" nodes, you would be safe to remove it for the time being. I'll let you know when I come up with a better query.

    Many thanks

    Matt

  • Tobias 9 posts 29 karma points
    Sep 06, 2013 @ 13:17
    Tobias
    0

    Ty for the quick reply both on twitter and here :)

    I removed it for now. 

     

    Tobias

     

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Sep 14, 2013 @ 10:12
    Matt Brailsford
    0

    Hi Tobias,

    Just to let you know, I've just released version 1.1 which should now fix this issue.

    Many thanks

    Matt

  • Tobias 9 posts 29 karma points
    Sep 23, 2013 @ 15:49
    Tobias
    0

    Great. Ty.

  • Dan Evans 629 posts 1016 karma points
    Jan 08, 2014 @ 11:39
    Dan Evans
    0

    I have the latest version 1.1 installed on U7 and am gettng no media hits. I've added in the PDF indexer and get results using the built in Umbraco Examine Management search.

    Are there any special settings in the Macro?

    Thanks

    Dan

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jan 08, 2014 @ 12:29
    Matt Brailsford
    0

    Hi Dan,

    I can't say I've tested it with V7 yet, though can't see why it wouldn't work as it's got no real backend. The only Macro setting that can affect this would be the IndexType setting, which can be CONTENT, MEDIA or BOTH, however this should default to BOTH.

    When you say you are using the PDF indexer, are you adding the PDF info to the standard media index? or are you using a custom index? if you are using a custom index, that might be your problem, as easy search only uses the ExternalSearcher to perform it's search. If you need to return results from another index, you'll need to modify the ezSearch code in ezSearch.cshtml to also use your pdf searcher.

    Hope this points you in the right direction.

    Matt

  • Dan Evans 629 posts 1016 karma points
    Jan 08, 2014 @ 12:34
    Dan Evans
    0

    Well I wasn't sure if the standard indexer indexed PDFs so I added the PDF indexer mentioned here - http://our.umbraco.org/documentation/Reference/Searching/Examine/full-configuration + the relevant DLL.

    Is there something special that needs to be done to the ExternalSearcher to get it to index PDFs?

    Thanks

    Dan

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jan 08, 2014 @ 12:52
    Matt Brailsford
    0

    Hi Dan,

    Out of the box the ExternalIndexer should index the PDF meta data defined in Umbraco (ie, it's file name, and the friendly name you give it in the media section) though I don't think it automatically indexs it's content (I may be wrong as I seem to remember reading something about it being in by default, but I've never seen it working).

    I think this blog post may help as it explains how to search multiple indexes, which is utlimately what you need to do (tl;dr configure examines multi index searcher, then change esSearch.cshtml to use your new searcher)

    http://our.umbraco.org/forum/developers/extending-umbraco/18956-Searching-multiple-indexes-with-Examine

    Matt

  • Dan Evans 629 posts 1016 karma points
    Jan 08, 2014 @ 16:00
    Dan Evans
    0

    Thanks for your help on this Matt. I have changed line 65 of ezSearch,chtml to use my PDF index but it's still not returning any results:

     

     var searcher = ExamineManager.Instance.SearchProviderCollection["PDFSearcher"];

    So I decided to go down this route - http://our.umbraco.org/forum/developers/extending-umbraco/13522-Examine-pdf-index-item-inject-into-content-index which is to inject the PDF index into the main content index.

    However I think something has changed in the Umbraco Event Handlers as this doesn't work any more:

    ExamineManager.Instance.IndexProviderCollection["PDFIndexer"].NodeIndexing

     

                    += new EventHandler(ExamineEvents_NodeIndexing);

    Error39No overload for 'ExamineEvents_NodeIndexing' matches delegate 'System.EventHandler'


  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jan 09, 2014 @ 10:11
    Matt Brailsford
    0

    Hi Dan,

    I've had a look in the Examine DLL that ships with V7 and the NodeIndexing event hander is still there, and it seems to have the same method signature as previous versions. I'd recommend checking your arguments defined on your ExamineEvents_NodeIndexing method as it seems to think they aren't right (try deleting the method and get VS to autogenerate one for you with the right args).

    Hope that helps

    Matt

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jan 09, 2014 @ 10:14
    Jeroen Breuer
    0

    Is the event still being hit? Some old events don't fire anymore in v7: http://issues.umbraco.org/issue/U4-2536

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft