I have a document library with a custom content type that inherits a document item. I remove the default content type.
I have a search webpart in which I want to list down all the folders available. I am currently using the Content Type as my query. I can see the files but not the folders using ContentType="NameofMyCT". I know that by using IsDocument, I can hide the non-folder, but my question is why are my folders not showing? By default, I know SP Search Result will show folders.