0

i am trying to create a result source by excluding the document set content type.

I tried by using

http://server/site1/published/
NOT ContentType:0x0120D52000FF378E63893F7C449BE61EF8221FE8AB

But it is not working.

I am trying to do in sharepoint 2013 and using query builder.

Please help...

0

Is your problem related to this topic Ignore content type on search ?

Or this might help you - specify IsDocument:1 http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/08/26/excluding-folders-from-search-results.aspx

0

I'm afraid your actual Content Type Id is wrong (it might actually be a child content type of the DocumentSet - most like recovered directly from a Document Library where Document Set has been added). The base Content Type Id is actually 0x0120D520

This being said, you would actually be able to use Content Class (see here http://spreflections.wordpress.com/2010/04/18/leverage-search-crawl-rules-and-content-class-property-to-refine-sharepoint-search-result/ for details) to exclude it.

How you put in place is different either by creating a Search Scope (e.g. an Exclude Rule for the "ContentClass = DocumentSet") or by code in your component (e.g. web part, etc.).

  • thank, i tried with 0x0120D520 but no effect,is this id same in 2013 also – Suraj Jan 10 '14 at 11:52
  • You must use the ContentTypeId property instead if you specify the ID rather than name. – Marius Constantinescu - MVP Jan 10 '14 at 12:54
-1

i tried by using

NOT ContentTypeID:0x0120D520*

and it gave me the expected result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.