Chapter 16. Finding Information on the SharePoint Site

Chapter at a Glance

Finding Information on the SharePoint Site

In this chapter, you will learn how to

Search the SharePoint site.

Search for files across multiple document libraries from within Microsoft Office 2010.

Two basic methods are available to find information in Microsoft SharePoint Foundation 2010. The first method is to browse a hierarchical structure of links and pages to find the information that you need. The second—and often faster—method of finding information is to search for it.

Searching for information is the process of entering one or more words in the search box to form a search query that is executed against the index built on the SharePoint servers by your system administrators. The servers process your query and return a set of content items that match your query. These content items contain links to the list items, documents, lists, libraries, or sites that you want to find.

This chapter introduces the basic concepts of how to execute search queries.

Practice Files

Before you can complete the exercises in this chapter, you need to (1) download the Chapter 16 practice files from the book’s catalog page to the following folder on your computer: DocumentsMicrosoft PressSBS_SPFChapter16 and (2) install the Chapter 16 practice site using the Chapter16_Starter.wsp file. See Using the Practice Files at the beginning of this book for more information.

Important

Remember to use your SharePoint site location in place of http://wideworldimporters in the following exercises.

Searching the SharePoint Site

Before discussing the execution of a search query, certain basic concepts must be covered. A search query contains one or more words that represent the content that you are trying to find. When executing a query, SharePoint returns a set of content items that form a result set. Your queries are executed against a summary of the content, known as an index, which enables SharePoint to respond quickly. You can think of the search index as similar to the index you find at the end of this book. The index is updated periodically. By default, it is refreshed once every hour, but the frequency can be configured differently by your SharePoint administrator. Therefore, when you create new data in your SharePoint site, such as a new announcement, it may not appear immediately in your result set. Similarly, if you delete a document from a document library, it still may appear in the result set, but when you click the link for the document, an error message, “The webpage cannot be found,” displays. The link to the document in the result set is called a broken link.

Troubleshooting

If you query to locate information that you know exists and it doesn’t appear in your result set, check the spelling of your search query, wait the length of time set by your SharePoint administrator, and repeat the search query. If it still does not appear in the result set, then the index has not been updated, so contact your SharePoint administrator for assistance.

To find information, you may need to enter more than one query term. The more query terms you enter, the more discriminating your query becomes, thereby producing a more focused result set. Search queries can comprise any of the following items:

  • A single word

  • Multiple words

  • A single phrase in quotes

  • Multiple phrases in quotes

Note

The search box is limited to a maximum of 255 characters.

SharePoint does an implicit AND when you search for multiple words or multiple phrases. For example, when you search for the multiple, separate words “oak” and “furniture,” the result set contains only those content items where both words occur. Those words do not have to be side by side, but they do both need to be in the content item somewhere. If a document contains the words “oak” and “chest” but not “oak” and “furniture,” that document will not appear in the result set. When you search for the complete phrase “oak furniture,” the result set contains only those content items where the two words “oak furniture” appear together.

Note

Links to files that are attached to list items do not appear in the result set; however, if an attachment contains the words or phrases you are searching for, then a link to the list item appears in the result set.

When you use two words or two phrases in your search query and separate them by the word OR, then when either word or phrase appears in a document, that document appears in the result set. You can create complex search queries, such as (chest OR furniture) AND oak. This will return content items that contain the words “oak” and “chest” or the words “oak” and “furniture,” but will not return content items that contain the words “chest” and “furniture.”

In earlier chapters in this book, you used columns on lists and libraries to save list item and document property values, also known as metadata. You can use some of these metadata properties to help you create powerful search queries, thereby creating a more focused result set. Some of the default metadata properties are listed here. For those metadata properties that store text, in the search box, use the syntax property:value where value is a word or phrase.

  • author. Use this to find all content items authored by a particular person or persons, such as author:peter.

  • filename. Use this to find all documents based on their file name, such as filename: “oak furniture”.

  • filetype. Use this to find specific file types, such as filetype:docx.

  • title. Use this to find content items based on the value entered in the title column, such as title: “oak chest”.

  • description. Use this to find content items based on the value entered in the description column, such as description:oak.

  • contenttype. Use to find content items of a particular type, such as document, announcement, task, or wiki.

  • Size. Use this to find files according to their size. For example, size>45000 will find all files greater than 45000 bytes.

When you enter a search query on the home page of your site, the result set will return content items from the current site and any subsites below it. When you use a view to display the contents of a list or library and you enter a search query in the search box on those pages, the result set will contain only content items from that list or library. On the Search Results page, you will see a Search Scope drop-down list to the left of the search box, which displays the scope of your result set. For example, if you entered a search query on the home page of your site, then in the scope list, This Site is selected. When you enter a search query on a list or library view, then the This List scope is selected on the Search Results page. You can then use the scope list to broaden your search query to This Site.

Note

Other SharePoint products include enhanced search capabilities; for example, SharePoint Server 2010 and Search Server 2010 Express include additional scope and metadata property options and enhancements to the Search Results page, such as the ability to sort the result set by result type, site, or modified date and the ability to subscribe to the search query as a Really Simple Syndication (RSS) feed or by creating an alert and links to data external to SharePoint websites.

In this exercise, you will familiarize yourself with the interface and enter a query phrase to observe how the results are more focused when multiple phrases and properties are entered in the search box.

Set Up

Open the SharePoint site. This exercise will use the http://wideworldimporters site, but you can use whatever SharePoint Team site you want. If prompted, type your user name and password, and then click OK.

Note

BE SURE TO verify that you have sufficient permissions to execute a query in the site you are using. If in doubt, see the Appendix A at the back of this book.

  1. In the upper-right corner of the home page, in the search box, type a query term that can be found in at least one document in your site, such as oak, and press ENTER.

    Troubleshooting

    If you cannot see the search box, click the Browse tab.

    The result set contains items that match your query term, including documents and folders. If more than one page of content items matches your query, the total number of pages in the result set appears, with each page number representing a link to that page of the overall result set.

    Troubleshooting
  2. In the search box, type a phrase in quotation marks, such as “oak chairs”, and press ENTER.

    The number of items returned in the result set is less than what was returned in step 1.

    Troubleshooting
  3. Add another phrase, such as “oak furniture,” to help make your query more specific.

    Now the result set is more focused, containing only content items in the site that contain both phrases.

    Troubleshooting
  4. Separate the two phrases with the OR operator, and then press ENTER.

    The result set contains items that include either the phrase “oak chairs” or the phrase “oak furniture”.

  5. In the search box, type a search query for two types of file types that can be found in your site that are authored by a specific person, such as (filetype:docx OR filetype:jpg) author:peter.

    The result set contains only items authored by Peter that are either Microsoft Office 2007 or Office 2010 files or .jpg files.

    Troubleshooting

Clean Up

Close the browser.

Searching for Files Across Multiple Document Libraries from Within Office 2010

When you are using an Office application, you often need to search for information to include in your document. Office 2003, Office 2007, and Office 2010 suites include the Research pane specifically for this reason. The Research pane can display information from local and online thesauruses, translation services, search engines, and business and financial sites. You can also configure the Research pane to retrieve information from other sources, such as SharePoint websites.

Note

The Research pane is not available with Microsoft Access 2010, Microsoft InfoPath Designer 2010, Microsoft InfoPath Filler 2010, Microsoft SharePoint Workspace 2010, or Microsoft SharePoint Designer 2010.

The Research pane organizes the sources of information into categories. By default, queries are performed against the All Reference Books category. When you search for information, you can specify an entire category or a single service. Once you have typed a word or phrase into the Research pane search box, the results of the search query are displayed, organized by service in collapsible sections. To view or hide the results for a particular service, use the + or - button in the section header for that service. The Research pane stores the results of previous searches for the duration of the session and provides Back and Forward buttons to navigate through the search result history.

The Research pane can be opened using one of the following methods:

  • On the ribbon Review tab, click Research in the Proofing group.

  • While pressing the ALT key, click a word or selection in the document.

  • Right-click a word or selection in the document, and click Look Up.

When you open the Research pane using one of the last two methods in this list, the word or phrase that you click is used as the search query and immediately executed against the default research category to produce the search results.

In this exercise, you will configure the Research pane to connect to a SharePoint site, and then you will use the Research pane to search for content on that SharePoint site.

Set Up

Open Microsoft Word. This exercise will use the http://wideworldimporters site, but you can use whatever SharePoint Team site you want. If prompted, type your user name and password, and then click OK.

Note

BE SURE TO verify that you have sufficient permissions to execute a query in the site you are using. If in doubt, see the Appendix A at the back of this book.

  1. On the Review tab, click Research in the Proofing group.

    Set Up

    The Research pane opens.

  2. At the bottom of the Research pane, click Research options.

    Set Up

    The Research Options dialog box opens.

  3. Click Add Services.

    Set Up

    The Add Services dialog box opens in front of the Research Options dialog box, which remains open.

  4. In the Address box, type the Uniform Resource Locator (URL) of the SharePoint site that you would like to search, and then append /_vti_bin/spsearch.asmx to the end of the URL, such as http://wideworldimporters/_vti_bin/spsearch.asmx.

    Set Up
  5. Click Add to close the Add Services dialog box. If prompted, type your user name and password, and then click OK.

    The Microsoft SharePoint Foundation 2010 Search Setup dialog box automatically opens.

  6. Ensure that the check box to the left of your SharePoint site is selected, and then click Install.

    The Microsoft SharePoint Foundation 2010 Search Setup dialog box closes.

  7. Click OK in the Add Services dialog box that appears.

    In the Research Options dialog box, in the Services box, your SharePoint site is added under the Intranet Sites and Portals category. You may need to scroll to find this category.

  8. Click OK to close the Research Options dialog box.

  9. In the Search for box, in the Research pane, type oak, and then, from the list, select your SharePoint site, such as WideWorldImporters.

    Tip

    You can use the same search queries in the Research pane as you use in the search box when you display your SharePoint site in the browser.

    Set Up

    The result set from searching your SharePoint site and the subsites below it is displayed in the search result section of the Research pane.

    Set Up

    Tip

    If the text “This service did not respond” appears and no search results are displayed, contact your server administrator.

Clean Up

Close the browser.

Key Points

  • You can find information by searching for it actively instead of browsing for it.

  • Enter any combination of words and phrases to help you find the content of your choice.

  • Use metadata properties to create powerful search queries to produce a more focused result set.

  • Use the Research pane in Office applications to search for content on SharePoint sites.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset