Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Evans 86 posts 116 karma points
    Oct 03, 2014 @ 11:51
    Mark Evans
    0

    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 

    .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?

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Oct 06, 2014 @ 08:52
    Dave Woestenborghs
    0

    Maybe you remove your index so it will be built again. Maybe that helps your problem

     

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft