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
im attempting to exclude media/documents from my search results.
in examineindex.config i have added this type to the excludenodetypes tag, in additon i have added
.Not().Field("nodeTypeAlias", "Document")
to my search filter.
i re-index the examine search but still get documents appearing in the searchREsults filter.
this code always returns null for this type of content hence i want to exclude them.
var node = Umbraco.TypedContent(result.Id);
would there be some sort of caching going on preventing my changes working?
Maybe you remove your index so it will be built again. Maybe that helps your problem
Dave
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
excluding documents from the search....
im attempting to exclude media/documents from my search results.
in examineindex.config i have added this type to the excludenodetypes tag, in additon i have added
to my search filter.
i re-index the examine search but still get documents appearing in the searchREsults filter.
this code always returns null for this type of content hence i want to exclude them.
would there be some sort of caching going on preventing my changes working?
Maybe you remove your index so it will be built again. Maybe that helps your problem
Dave
is working on a reply...