I need to limit the items being indexed within a specific scope. This scope hold a publishing site, on which only actual content needs to be indexed. Those are mainly published pages and documents (Word, Excel). What we want to exclude are all default SharePoint things like allitems.aspx, settings pages, stuff like that.
I found several articles on how to do this, but none seem to hold a perfect solution.
For instance: excluding things like allitems.aspx is mostly being done in the crawl rules, which apply to the entire environment. We would have to create a seperate search service instance for this specific site, which seems to be a bit of an overkill. Also, I'd rather not specificy what should be excluded since you could easily miss things. I'd rather specify what has to be included instead.
In the scope rules, it's not possible to use wildcards.
It's possible to use the "require" rules, but those are combined with ANDs. So you cannot specify a requirement for "contentclass = STS_ListItem" or "contentclass = STS_ListItem_850", because that would imply the item needs both contentclasses, which is false by default.
And when we use the "Include" rules instead (which are based on OR), we're not excluding anything. So we could say we'd want to include STS_ListItem and STS_ListItem_850, but we'd still need a way to exlcude everything else?
So I was wondering: who has a good solution for this? Requirements: include all publishing pages and documents, exclude everything else.