Logo
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
EPL Standings
 
 
Windows Server

SharePoint 2010 : Configuring Search Settings and the User Interface - Web Parts (part 3)

3/17/2013 11:31:18 AM
Query Language

One of the most important and often ignored options is the query language. All modern browsers allow the user to define a browser language. This is not the language of the browser interface, but the language preference submitted to web sites. The result set returned by SharePoint or most federated locations is affected by the language preference. A common confusion for end users is why certain results are not returned or why they get different results returned when performing the same search on different computers. Setting a default language forces the search to be executed using a specific language, word breaker, noiseword table, and stemming (if enabled).

Fixed Searches

The Fixed Keyword Query setting is an easy way to define specific searches that do not require user input. The Search Core Results Web Part can be placed on any page. If a fixed keyword query is defined, the results view will automatically be populated with the corresponding results when the user enters that page.

The main reason this is such a powerful option is that it also accepts complex queries. It is possible to set the fixed keyword query to always search and display news from a specific department in a given time frame using a department managed property and one of the date property values.

Appended Searches

It is also possible to append text to the existing query (similar to the Search Box Web Part). This allows all queries redirected to the given page containing this Search Core Results Web Part to be augmented by this appended text. The relevancy is, for example, if the search center is targeting specific content. Thus the appended text acts as a result set filter.

Metadata and Sorting

The Custom columns setting, which is configured by editing the Fetched Properties text box (Figure 14), is used to specify the metadata to output to the search result XML. This allows custom properties or metadata to be displayed by modifying the XSLT template. 

Image

Figure 14. Configuring search output

The Location property, which specifies the location to fetch properties from, affects which metadata properties will be available. For the selected location, only properties relevant to this location are available. The relevant properties are defined at Search service application level if it is a SharePoint location. For other locations outside SharePoint, they are not.

If Use Location Visualization is selected, the fetched properties are automatically populated and the section is grayed out. If it is required to edit which columns to fetch and output, deselect Use Location Visualization. This makes the fetched properties text box editable. If the Fetched Properties are configured to include a property that is not available from the location, that property will not be included in the XML output from the Web Part, which means that it has no effect when used in an XSLT template.

To edit the location visualization, go to the Search service application and open Local Search Results Federated Location. Here a new section for the Core Search Results metadata is added.

The benefit is that it allows a consistent look and feel to be defined for search results on all search centers on the farm. As mentioned this can be overridden locally by un checking the Use Location Visualization check box and defining which columns to output.

To add a custom column and display it in the Search Core Results Web Part, do the following:

  1. Check for crawled property: Make sure the custom property is crawled. This can be done by searching for it in the crawled properties collection on the relevant Search application.
  2. Create managed property: Create a new managed property, and map this managed property's custom column crawled property.
  3. Add property to Web Part output: On the Display Properties group of the Search Core Results Web Part, add the new property to the Columns section by typing the new column name as <Column Name=”custom_property” />.
  4. Add property to XSL: Add the column for the custom property to the XSL template such that it gets rendered. This is done by clicking the XSL Editor button, which opens the browser-based XSL text editor. Locate and apply the appropriate rendering logic inside: <xsl:template match=”Result”>.

Another important option is the Default Results Sorting setting. In standard SharePoint 2010 Search, it is not possible to configure sorting for properties other than Ranking and Modified Date. This is possible in FAST search, where sorting can be configured for all metadata properties, including custom properties.

Note Crawled properties are prefixed by an acronym for its typename. If the custom property is of type string and the name is “custom_property”, the crawled property will be “ows_custom_property”.

Top Federated Results

The Top Federated Results Web Part settings (Figure 15) are used to execute and display search results from federated locations. They contain the same search settings as the Search Core Results Web Part with the exception of the Location properties. A notable advantage of this Web Part is the option to aggregate results from several locations. In this section, we will look at the following search-related settings of the Top Federated Results: choosing a federated location and using the asynchronous Ajax options.

Image

Figure 15. Top Federated Results settings

Choosing a Federated Location

To use any new federated location, choose it from the Location drop-down. Alternatively the pre-defined Internet Search Results location can be selected. This searches http://bing.com using the Open Search 1.1 standard and RSS. To complete the configuration, follow these steps. The results are shown in Figure 16.

  1. After selecting a location, click Apply, and then OK.
  2. Click Stop Editing on the ribbon, and test the new settings with a query.
    Image

    Figure 16. Example of top federated results

Using the Asynchronous Ajax Options

One of the important but often overlooked features is the option to use asynchronous loading of federated search results (Figure 17). Some federated sources may respond slowly, causing the user interface in SP2010 to seem unresponsive.

Image

Figure 17. Asynchronous loading of external content

Per default, the user interface will not render until the entire page is ready, which includes fetching all federated search results. To avoid this, it is recommended to use the Enable Asynchronous Load option for federated locations outside your company's control.

Other -----------------
- Windows Server 2008 R2 file and print services : Administering Print and Document Services (part 2) - Distributed scan server
- Windows Server 2008 R2 file and print services : Administering Print and Document Services (part 1)
- Windows Server 2008 R2 file and print services : Services for Network File System, Windows Search Service
- Windows Server 2008 R2 file and print services : File Server Resource Manager
- Managing Windows Small Business Server 2011 : Adding a Terminal Server (part 3) - Configuring RD Licensing
- Managing Windows Small Business Server 2011 : Adding a Terminal Server (part 2) - Installing the Remote Desktop Services Role
- Managing Windows Small Business Server 2011 : Adding a Terminal Server (part 1)
- Monitoring Dynamics CRM Using System Center Operations Manager (part 3) - Installing the Microsoft Dynamics CRM 4.0 Management Pack
- Monitoring Dynamics CRM Using System Center Operations Manager (part 2) - Microsoft Dynamics CRM Architecture
- Monitoring Dynamics CRM Using System Center Operations Manager (part 1) - SCOM Overview, MOM Versus SCOM
- Microsoft Systems Management Server 2003 : Configuring Software Metering (part 2) - Creating a Software Metering Rule
- Microsoft Systems Management Server 2003 : Configuring Software Metering (part 1) - Configuring the Software Metering Client Agent
- BizTalk Server 2006 : Starting a New BizTalk Project - Creating Your Development Environment
- BizTalk Server 2006 : Starting a New BizTalk Project - Starting Preliminary Design
- Microsoft Content Management Server Development : Validating Placeholder Controls - Validating the SingleAttachmentPlaceholderControl
- Microsoft Content Management Server Development : Validating Placeholder Controls - Validating the SingleImagePlaceholderControl
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Domain Name System and Its Role in Exchange Server 2007
- Extending the Real-Time Communications Functionality of Exchange Server 2007 : Installing and Using the Communicator 2007 Client, Web Conferencing with Office Live Meeting
- System Center Configuration Manager 2007 : Operating System Deployment - Task Sequences (part 3) - Task Sequence Targeting
- System Center Configuration Manager 2007 : Operating System Deployment - Task Sequences (part 2) - Tasks
 
 
Most view of day
- Maintaining Windows 7 : Delete Unnecessary Files
- Microsoft Word 2010 : Creating Desktop Publishing Documents - Adding Desktop Publishing Effects
- Connecting Dynamics GP to Microsoft Office 2010 : Skipping the exports by using Prebuilt Excel Reports
- Client Access to Exchange Server 2007 : Using Outlook 2007 Collaboratively (part 3) - Using Group Schedules
- SQL Server 2008 R2 : Performance Monitoring Tools (part 5) - Creating a Customized Data Collection Set
- Windows Phone 8 : Orientation and the PhoneApplicationPage Class (part 1) - OrientationChanged Event
- What's new and improved in SharePoint 2013 : Creating badges, Using Visual Designer for workflows within SharePoint Designer
- SQL Server 2008 R2 : Creating and Managing Stored Procedures - Debugging Stored Procedures Using SQL Server Management Studio
- Using Micrsosft Outlook 2010 with SharePoint and OCS : Using SharePoint Document Libraries in Outlook
- Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 1) - Adding Simple Data Fields
Top 10
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 3) - Creating IPv4 DHCP Scopes
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 2) - Installing DHCP Server and Server Tools
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 1)
- Windows Server 2012 : DHCP,IPv6 and IPAM - Understanding the Components of an Enterprise Network
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 3) - Translating Text with the Mini Translator
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 2) - Translating a Word or Phrase with the Research Pane
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 1) - Setting Options for the Research Task Pane, Searching with the Research Task Pane
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 2) - Ending a Linked Notes Session, Viewing Linked Notes
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 1) - Beginning a Linked Notes Session
- Microsoft OneNote 2010 : Doing Research with Side Notes (part 3) - Moving Side Notes to Your Existing Notes
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro