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

I have a list on the root web of every site collection that I would like to create a scope for. I tried the following rule and got 0 results:

folder = http:// servername /*/Lists/Listname

If I substitute the asterisk for the site collection name, I get results. I just don't want to have to add a scope rule for every site collection that is created.

  1. folder = http:// servername / sitecoll1 /Lists/Listname
  2. folder = http:// servername / sitecoll2 /Lists/Listname
  3. folder = http:// servername / sitecoll3 /Lists/Listname

Is it possible to create a rule using wildcards that will satisfy my need?

share|improve this question
    
Assuming the list stores same type of content, you can create a Search Scope based on Content Type instead of URL –  Ashish Patel Jun 17 '11 at 18:14
    
You're right, I like that solution better. –  andrew.petersen15 Jun 17 '11 at 18:24
    
ok, I promoted that as an answer :-) –  Ashish Patel Jun 17 '11 at 19:08
add comment

2 Answers

up vote 2 down vote accepted

Assuming the list stores same type of content, you can create a Search Scope based on Content Type instead of URL

share|improve this answer
    
I know it doesn't answer the question in the title of the post, but it is a valid and more elegant solution to my underlying problem. –  andrew.petersen15 Jun 17 '11 at 20:24
add comment

I'm not sure about 2010, but 2007 supported only prefix matching.

You are probably better served with a custom search web part that could query your WebApp, pull all the site collections and feed them into the query.

http://msdn.microsoft.com/en-us/library/ms584220(v=office.12).aspx

http://msdn.microsoft.com/en-us/library/ms551453.aspx

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.