Skip to main content

Posts

Showing posts with the label custom search scope

Search Results Customization - part 2

Search Results Look-and-feel Customization. Scenario We started using our mighty Expense Claim form and decided that we will use custom search scope to simplify administration of expense claims. Using search helps us output expense claims where necessary and will help us present expense claims information in the appropriate manner. For example like the following: We need to output employee name, department, claim amount and total amount of all claims we find. Solution Customize Search Core Results output. There is one note: in this scenario we will modify search results output for the page which is used only for selected search scope. If the idea is to customize common search results page the solution is to use conditional output in XSL. 1. We have to edit search core results XSL. Go to Site Actions -> Edit Page -> Search Core Results Web Part -> Modify Shared Web Part -> XSL Editor: 2. In the Text Entry copy all text and paste it into the XML editor: ...

Custom Search Scope

Scenario We want to expose some SharePoint data as a directed output for the search. Users will be able to search that data specifically. Solution Create a custom search scope. 1. Go to Shared Service Provider settings -> Search Settings -> Scopes section. Click View scopes link: 2. Click New Scope button from the actions menu: 3. Provide name and search results page for the new search scope. In my case it is "Expense Claims" and "/Pages/customsearchresults.aspx" respectively - I will use the forms library created in this post and search results page created in that post : 4. In the Search scopes list click Add rules link for the newly created scope: 5. In the Scope Rule Type section select Web Address option, in Web Address section select Folder option and provide folder URL - in my case it is "http://your_server_name/Expense%20Claims" - and press OK button: 6. At this stage your new search scope will be empty and you have to wait some time until i...