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.
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.
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.
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)
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).
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
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
Ty for the quick reply both on twitter and here :)
I removed it for now.
Tobias
Hi Tobias,
Just to let you know, I've just released version 1.1 which should now fix this issue.
Many thanks
Matt
Great. Ty.
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
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
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
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
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'
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
Is the event still being hit? Some old events don't fire anymore in v7: http://issues.umbraco.org/issue/U4-2536
Jeroen
is working on a reply...