Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We installed eZsearch and ran into a few problems.
The indexer breaks under certain conditions. In ezSearchBootstrapper.cs
e.Fields["umbracoFileName"] = Path.GetFileName(e.Fields["umbracoFile"]);
This line throws an exception when the field is a cropper. I just added an exception handling:
var uFile = e.Fields["umbracoFile"] as dynamic;
e.Fields["umbracoFileName"] = Path.GetFileName(uFile);
e.Fields["umbracoFileName"] = Path.GetFileName(x);
When rendering the results in ezsearch.cshtml the helper "RenderResults" breaks when trying to create urls to media folders.
I added a try catch and a check
var contentItem = Umbraco.TypedContent(result.Fields["id"]);
if (result.Fields["nodeTypeAlias"] != "folder")
var mediaItem = Umbraco.TypedMedia(result.Fields["id"]);
// need some logging of errors here?
There's probably some other build in ways to do this. :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted