Article

MOSS - How to create Custom Search and Results page?

Published On: 07-03-2009

Implementing the Custom Search Functionality for specific site by MOSS setting.
Here I’m going to use only two steps. Step 1 is Central Administrator setting & Step 2 is MOSS site setting.

 

Step 1(Central Administrator part)


In Central Administrator site, click on shareservices1 Search setting
Under Search

There are lots of settings but we will go only mentioned label in this document.

Click on Content Source and crawl schedule

By default Local Office SharePoint Server sites available, just leave this as it is.

Click on New Content Source, you will get this screen

 


Please follow the red text labels.

Under Name just put your search content name.

The Start Address box is very important. Put the site addresses here on which you want to make searchable with given name as for “MOSS Custom Search”.

Click OK button.

Another one is Scope setting that is really most important setting for the specific search creation of a particular site.

Under Scope

Click on View Scope & you will get this screen

 

Again Click on New Scope that is squired in red color border, then again you will get new screen like this

Finally click on OK button.
Now scope is ready but before to use in MOSS site. We have to create a rule for this scope.

Create a rule for created scope

 

Please go with red denoted option to make a specific site search,
Chose a Content Source & select previous Moss Custom Search.
Finish by clicking on OK button.

                    Now, we have to start crawling of that created content source. Click on Start all Crawls which is
denoted in red circle of below figure.

 

 

 Step 2 (MOSS Site Setting part)


Here, I’m going to show, how to create custom search & results in ASPX pages of MOSS sites

a. On the tabs menu, click on search tab.

 

b. On the Site Actions menu, click Create Page.

 

Here is the process to create custom search & results page!

 

For Search page                                                                                                     
In page layout must be select as (welcome page) Search Page.                            
For Search Result Page                                                                                          
In page layout must be select as (welcome page) Search results Page.                

 

Now click on Create button to create custom Search Page & published it after clinking on ok.

c. After creation of both search & result pages, again click on search tab.

 

 

d. On the Site Actions menu, click Edit Page.

 

Please go with red round circle then you will get below screen.

 

Again make changes as round red circle as explained in above figure


Scope Dropdown: Under dropdown mode select show, do not include contextual scopes
Miscellaneous: a) Under Target search results page URL, replace the page results.aspx to
custom result page e.g.: customsearcresults.aspx that you have created!
b) Under scope Display group: Naming here dropdown label display as “Custom Search
Scope”
How to add Custom Tab on Search & Results pages?

  • The Site Actions menu, click View All Site Content.

 

In above figure, under Lists there are two rounded circle in red color.

1. Tabs in search pages: Click on this link then below screen will be displayed.

Click on red square & select New Item,

Under Tab Name, put your custom tab name here e.g.: “Custom Search”
Under Page, put you custom search page name e.g.: “customsearch.aspx”

2. Tabs in search results : Click on this link then you will be prompt below screen

Click on red square & select New Item,

 

 

Under Tab Name, put your custom tab name here e.g.: “Custom Search”
Under Page, put your custom search page name e.g.: “customsearch.aspx”

Add the scope dropdown with Search box

The Site Actions menu, Site Setting & click on Modify All Site Settings.

Click on red square link called search Scope.

 

Please click on red squared on New Display group.

Under Title and Description: Put Title name as “Custom Search”
Under Scopes, select only those scopes that you have already created in Admin section. Here you can
select multiple scopes that will be displayed in dropdown with search box.
Finally select default scopes that will be responsible for your specific search.