Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to construct a SharePoint Search Query for a specific web type (site definition / web template id) in the same manner as for lists?

I can easily search for my custom lists using "contentclass = 'STS_List_20001'" if my custom list has ID 20001.

Kind regards, Dennis

share|improve this question
add comment

2 Answers

No, this is unfortunately not possible. The contentclass is always STS_Web and there is no crawled property available with the template id. But you could create your own list of sites with Metadata in a SharePoint list and search that.

share|improve this answer
    
Nice to see you in here Lars ;-) –  Anders Rask Dec 6 '09 at 14:14
add comment

I caught your question a few days ago and it got me thinking about a solution to this problem I worked on some time ago. I got around to blogging it this week and thought it might help: Using HTML Meta Tags to add Information to SharePoint Search

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.