Hi,
I'm trying to set up my MOSS 2007 portal so users can search items by the item's content type. I found a few links (listed below) that tallk about this and I followed their instructions but my queries are pulling back too many items. They pull back items that are not of the specified content type but contain the content type's name. For example, a keyword search such as "ContentTypeocument" will return all items of content type "Document" but it also returns all items with the word "Document" in them (even if they are not of content type "Document"). This is obviously not what we want.
As per the instructions in the links below I modified the "Properties" XML of the advanced search web part so "ContentType" could be choosen in the Advanced Search property picker. ("ContentType" does exist as a Managed Property on my site and it is mapped to the crawled properties "Basic:5(text)" and "ows_ContentType(text)" ). I made another managed property and mapped it to just the "ows_ContentType(text)" crawled property but the search results where the same.
Any help would be much appreciated. Thanks,
Phil
Here are a few links that reference searching on content types and adding managed properties to advanced search:
http://sjoere.blogspot.com/2007/04/use-content-type-for-search-scope.html
http://souls-end.spaces.live.com/blog/cns!AEC42F315B4528B0!2669.entry
Customizing and Extending the Microsoft Office SharePoint 2007 Search
http://msdn2.microsoft.com/en-us/library/bb608302.aspx
Creating and Exposing Managed Properties in the Advanced Search Page of SharePoint Server Enterprise Search
http://msdn2.microsoft.com/en-us/library/bb428648.aspx