1: Create an Enterprise Search Center and a Custom Search Box Page
2: Create a Custom Search Results Page
3: Modify the Search Core Results Web Part to Return Only Documents
4: Add a Custom Tab to the Search Center and Modify the Search Box Web Part
Imagine that users complain about seeing items that are not documents in their search results. They request that you set up a Custom Search Center where they can search for either/all content, people, or just documents. You task is to create a new Search Center and a new tab for only documents. When users select this tab, only items that are documents appear in their search results.
1: Create an Enterprise Search Center and a Custom Search Box Page
1. Navigate to http://your intranetsite
2. Click Site Actions, and then click New Site.
3. In the Create dialog box, click the Search category.
4. Select the Enterprise Search Center template.
5. Enter a Title and a URL Name of JustDocuments and click Create.
6. Click Site Actions, and then click More Options.
7. In the Create dialog box, click the Page category.
8. Select the Publishing Page template, and then click the Create button.
9. Enter Documents in the Title text box.
10. Enter Documents in the URL Name text box.
11. Select (Welcome Page – Search box) in the Page Layout section list.
12. Click the Create button.
13. Click the Save & Close button on the Ribbon.
2: Create a Custom Search Results Page
1. Click Site Actions, and then click More Options.
2. In the Create dialog box, click the Page category.
3. Select the Publishing Page template, and then click the Create button.
4. Enter a DocumentResults in the Title text box.
5. Enter DocumentResults in the URL Name text box.
6. Select (Welcome Page – Search results) in the Page Layout section list.
7. Click the Create button.
8. Click the Save & Close button on the Ribbon.
3: Modify the Search Core Results Web Part to Return Only Documents
1. Verify that you are on the DocumentResults Search Results page you just created.
2. Click Site Actions, and then click Edit Page.
3. Locate the Bottom Zone in the Web Part page.
4. Locate the Search Core Results Web Part.
5. Hover your mouse over the upper right corner of the Web Part until a down arrow displays. Click the down arrow to display the Web Part menu.
6. Click Edit Web Part.
7. Locate the Search Core Results tool pane in the upper right corner of the Web Part page. Expand the Result Query Options section.
8. Enter IsDocument:1 into the Append Text To Query text box.
9. Click the OK button of the Search Core Results tool pane.
Click the Save and Close button to save and close the DocumentResults.aspx page.
4: Add a Custom Tab to the Search Center and Modify the Search Box Web Part
1. Navigate to http://your intranetsite/justdocuments/Pages/default.aspx.
2. Click Site Actions, and then click Edit Page.
3. Locate the Add New Tab link and click it.
4. In the Tabs In Search Pages item dialog, enter a Tab Name of Just Documents.
5. Enter documents.aspx in the Page text box.
6. Click the Save button.
7. Click the Browser Refresh button so the Just Documents tab displays.
8. Click Site Actions, and then click Edit Page.
9. Locate the Search Box Web Part.
10. Click the upper right corner down arrow to display the Web Part menu.
11. Click Edit Web Part.
12. Locate the Search Box tool pane in the upper right corner of the Web Part page. Expand the Miscellaneous section.
13. In the Target search results page URL, enter documentresults.aspx.
14. Click the OK button of the Search Box tool pane.
15. Click the Save and Close button to save and close the default.aspx page.
No comments:
Post a Comment