Open drobar opened 9 years ago
Folders have no url so they shouldn't appear in the results.
Suggested change is to add a check for the 'Folder' doctype:
var mediaPathFilter = model.RootMediaNodeId > 0 ? string.Format("__IndexType:{0} +searchPath:{1} -__NodeTypeAlias:folder", UmbracoExamine.IndexTypes.Media, model.RootMediaNodeId) : string.Format("__IndexType:{0} -__NodeTypeAlias:folder", UmbracoExamine.IndexTypes.Media);
Full discussion can be found at https://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/47487-Media-folders-should-not-be-shown-in-results
Folders have no url so they shouldn't appear in the results.
Suggested change is to add a check for the 'Folder' doctype:
Full discussion can be found at https://our.umbraco.org/projects/website-utilities/ezsearch/bugs-feedback-suggestions/47487-Media-folders-should-not-be-shown-in-results