Copied to clipboard

Flag this post as spam?

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


  • djscorch 67 posts 106 karma points
    May 24, 2012 @ 13:21
    djscorch
    0

    Easy way of ignoring specific DocTypes when searching with Examine?

    Or do i need to do it once i've got the results back?

  • Hendy Racher 859 posts 3822 karma points MVP admin c-trib
    May 24, 2012 @ 13:30
    Hendy Racher
    0

    Hi,

    if it's for a specific query, and you're using the Examine fluent api, then how about:

    query.Not().NodeTypeAlias("docTypeAlias");

    or if you never want to return these doctypes from Lucene, how about preventing them from being indexed by updating the ExamineIndex.config to exlude that particular docTypeAlias ?

    HTH,

    Hendy

  • djscorch 67 posts 106 karma points
    May 24, 2012 @ 13:58
    djscorch
    0

    I never want to return these specific doctypes, but i thought updating <ExcludeNodeTypes> just removed them from the index, not the results?

  • Hendy Racher 859 posts 3822 karma points MVP admin c-trib
    May 24, 2012 @ 14:03
    Hendy Racher
    0

    not sure I understand - if they're not indexed, how can they be returned in a result set ? (this sounds like the option you want tho)

  • djscorch 67 posts 106 karma points
    May 24, 2012 @ 14:18
    djscorch
    0

    Whoops, forgot to rebuild the index!

    Thanks for your help!

  • djscorch 67 posts 106 karma points
    May 24, 2012 @ 14:37
    djscorch
    0

    It's returning Media nodes, is there an option to ignore these?

Please Sign in or register to post replies

Write your reply to:

Draft