SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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

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

Your Answer


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