Executing a Search Query


In the last exercise, you executed a search query to familiarize yourself with search-specific interfaces. However, there is more to executing a query than entering a single word. To find the information you really need, you might need to enter more than one query term. It stands to reason that the more query terms you enter, the more discriminating your query becomes, thereby producing a more focused result set.

Search queries can be comprised of any of the following items.

  • image from book Single word

  • image from book Multiple words

  • image from book Single phrase in quotes

  • image from book Multiple phrases in quotes

For example, if you search the phrase oak furniture, the result set contains only those content items containing the words oak furniture. If a document contains the words oak chest but not oak furniture, that document will not appear in the result set.

If you search two phrases and separate them by the word AND, then both phrases must appear in the document for that document to appear in the result set.

In this exercise, you will enter a query phrase to observe how the results are more focused when multiple phrases are entered in the search Web Part.

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

BE SURE TO verify that you have permissions to the site in which you want to execute your query. If in doubt, see the Appendix on page 435.

1. In the search Web Part, type a phrase encapsulated in quotation marks, such as oak chairs.

image from book

Notice that two items from the index are returned back in the result set: the document containing the phrase oak chairs and the folder hosting the document containing the phrase oak chairs.

image from book

2. Add another phrase, such as oak furniture, to help focus your query. Separate both phrases with the AND operator.

image from book

Note that the result set is more focused, containing the only item in the site that contains both phrases.

image from book

CLOSE the browser.




Microsoft Windows Sharepoint Services Version 3. 0 Step by Step
Microsoft Windows Sharepoint Services Version 3. 0 Step by Step
ISBN: 735623635
EAN: N/A
Year: 2004
Pages: 201

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net