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 ?
Easy way of ignoring specific DocTypes when searching with Examine?
Or do i need to do it once i've got the results back?
Hi,
if it's for a specific query, and you're using the Examine fluent api, then how about:
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
I never want to return these specific doctypes, but i thought updating <ExcludeNodeTypes> just removed them from the index, not the results?
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)
Whoops, forgot to rebuild the index!
Thanks for your help!
It's returning Media nodes, is there an option to ignore these?
is working on a reply...