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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.