Answered by:
Different search for two web applications?

Question
-
Hi All.
We have two web applications, each with one site collection on it.
the first one we made have a search, and it works just fine. It only gives results for that web application.
The second one, the search works fine, but it shows search results for both the first and the second web application :( it should only show the search result for its own web application..
How do i do that? i have googled, and tried different settings in the sharepoint, but no luck :(
Can some one help me in the right direction?
Thanks.
Kind regards
Morten
- Edited by Mike Walsh FIN Tuesday, March 23, 2010 2:10 PM howto in Title unnecessary
Tuesday, March 23, 2010 1:55 PM
Answers
-
Hi Morten,
There are more ways to achieve this, but I think I would go with the following approach:
- Create one content source that indexes both web applications (you probably already have this set up)
- Go into Search Settings in your Shared Service Provider
- Click on Content Sources and Crawl Schedules
- Click on Edit in the contex menu of the Local Office SharePoint Server sites content source
- Make sure both web application urls are listed in the Start Addresses text box
- Create two scopes, one for each web application
- Go into Search Settings in your Shared Service Provider
- Click on View Scopes
- Click on New Scope
- Give your scope a name, you can probably just leave it at "Use the default Search Results Page
- Click on the Add Rules link displayed behind the scope name
- Select Web Address, Select Domain or subdomain and fill in the url of the web application and select Include
- Repeat the steps of creating a new scope for the second web application
- Go to the rootweb of your web application (you have to do this for each site collection in your web application, should you want to create more site collections)
- Make sure that each web application has at least its own search center
- Click on Site Actions and Choose Site Settings => Modify All Site Settings
- On the right site of the screen click Search Settings
- Make sure that you select "Use custom scopes and that the url of the search center (this is a relative url) is pointing to the search center for that site collection.
- Go back to the Site Settings page
- Select Search Scopes on the right
- Click on the title of the Search Dropdown display group
- Select the Scope for this particular web application and DE-select the scope for the other web application.
- Do the same thing for the Advanced Search display group
- Repeat the steps of setting up scopes for the site collection for the second web application
Mirjam
sharepointchick.com- Proposed as answer by Chris GivensMVP Friday, March 26, 2010 3:27 AM
- Proposed as answer by Chris GivensMVP Friday, March 26, 2010 3:27 AM
- Marked as answer by Mike Walsh FIN Friday, March 26, 2010 4:56 AM
- Edited by Mike Walsh FIN Friday, March 26, 2010 4:57 AM Do I need to mark this as Answer twice, Chris ?
Tuesday, March 23, 2010 2:34 PM
All replies
-
Hi Morten,
There are more ways to achieve this, but I think I would go with the following approach:
- Create one content source that indexes both web applications (you probably already have this set up)
- Go into Search Settings in your Shared Service Provider
- Click on Content Sources and Crawl Schedules
- Click on Edit in the contex menu of the Local Office SharePoint Server sites content source
- Make sure both web application urls are listed in the Start Addresses text box
- Create two scopes, one for each web application
- Go into Search Settings in your Shared Service Provider
- Click on View Scopes
- Click on New Scope
- Give your scope a name, you can probably just leave it at "Use the default Search Results Page
- Click on the Add Rules link displayed behind the scope name
- Select Web Address, Select Domain or subdomain and fill in the url of the web application and select Include
- Repeat the steps of creating a new scope for the second web application
- Go to the rootweb of your web application (you have to do this for each site collection in your web application, should you want to create more site collections)
- Make sure that each web application has at least its own search center
- Click on Site Actions and Choose Site Settings => Modify All Site Settings
- On the right site of the screen click Search Settings
- Make sure that you select "Use custom scopes and that the url of the search center (this is a relative url) is pointing to the search center for that site collection.
- Go back to the Site Settings page
- Select Search Scopes on the right
- Click on the title of the Search Dropdown display group
- Select the Scope for this particular web application and DE-select the scope for the other web application.
- Do the same thing for the Advanced Search display group
- Repeat the steps of setting up scopes for the site collection for the second web application
Mirjam
sharepointchick.com- Proposed as answer by Chris GivensMVP Friday, March 26, 2010 3:27 AM
- Proposed as answer by Chris GivensMVP Friday, March 26, 2010 3:27 AM
- Marked as answer by Mike Walsh FIN Friday, March 26, 2010 4:56 AM
- Edited by Mike Walsh FIN Friday, March 26, 2010 4:57 AM Do I need to mark this as Answer twice, Chris ?
Tuesday, March 23, 2010 2:34 PM -
Wow. cool reply, thanks, ill try it tomorrow, and get back :) Thanks so fare :)Tuesday, March 23, 2010 3:16 PM
-
Hi,
Which version of sharepoint did you use? Microsoft Office SharePoint Portal Server 2003 or Microsoft Office SharePoint Server 2007?
As a shared service, Search is a high-value application in SSP that is consumed by other applications in Microsoft Office SharePoint Server 2007. And In Microsoft Office SharePoint Portal Server 2003, search scopes were based on content sources and were tied to crawling. Content could be in only one scope at a time. In Microsoft Office SharePoint Server 2007, search scopes are expanded to represent a collection of items based on a common element among the items within that scope.
If you want them to search themselves only for each application in Microsoft Office SharePoint Server 2007, you have to define the corresponding scopes as Mirjam mentioned.
Let me know if you have further questions!
Hope it is helpful!
SevenFriday, March 26, 2010 3:11 AM -
I think Mirjam's option is a great one, another less desirable one would be to create another SSP and have each web application tied to a different SSP. It would achieve the desired result, but with a heavy penalty of having an extra SSP.
Chris
Chris Givens CEO, Architecting Connected Systems Blog TwitterFriday, March 26, 2010 3:26 AM -
Hi All..
I tried the mirjam way, but that just didn't work, it could not be setup like that, the search didn't care..
So i made a custom search, just like ive made on one of our other sites.
But thanks for your answers :)
Kind regards
Morten
Friday, March 26, 2010 7:20 AM