Follow

Webpart: Search

Article last updated on 3rd of October 2019.

1. Introduction

WorkPoint’s Search webpart can be used in Modern UI WorkPoint solutions. Quick information gathering is important, as it frees up resources for other important tasks. This webpart makes it possible to search across the entire solution, or it can be limited to specific areas of the solution. This helps users quickly find whatever information they need from anywhere on the solution.

A great thing about this webpart is that it is highly customizable. The webpart can be set up to show the columns that you want, and those columns data for the items searched for will show up in the search results.

Other important aspects of the customizability of the webpart is explained in the Configuration section of this article.

2. Requirements

Utilizing this feature requires a specific feature license. Please contact WorkPoint sales at sales@workpoint.dk for more information about purchasing a license for this feature.

3. Configuration

In order to set up a Search webpart, follow these steps:

  1. Click the “Add a new web part”-button to add a new webpart.
  2. Choose the “WP365 – Search” webpart from the list of available webparts.

When the search webpart is added, the configuration panel is also opened:

  1. A title can be added for the webpart. This title is shown as the first element of the webpart on the solution, just above the search bar. If there is no text in the Title field, the field will be hidden on the solution.
  2. A scope can be chosen for the webpart. The webpart searches for results within the given scope:
    • Everywhere: Searches across the entire tenant.
    • Entire WorkPoint solution: Searches across the entire WorkPoint solution.
    • Entity site: Searches through the current entity site
    • Entity site and below: Searches through the current entity site, as well as elements below in the hierarchy.
  3. A base query can be defined in this field. The base query determines what the default search when loading the webpart should be. An asterisk (*) in this field will make the system fetch all results and display them when loading the webpart. For more information about the query language used in Search, visit https://docs.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference
  4. The Web Part size field lets the user choose how big the webpart should be. A smaller size will display less results upfront, while a larger size requires more space on the solution.
  5. The user can control the number of results for the system to fetch. The slider increments and decrements by 5 and goes from a minimum of 10 to a maximum of 500.
  6. Compact view: Compact view compresses the space between search results to make the webpart more compact.
  7. Show search bar: Lets the user decide whether to show the search bar.
  8. Load more results on scroll: Lets the user have the system load more results as they approach the end of the list of results.
  9. The "Sorting Field" field allows the user to select by which managed property search results should be sorted.
  10. The "Direction" field lets you choose in which direction results should be ordered. Options are "A to Z" or "Z to A".
  11. The user can specify which columns to show in the webpart results. The title field is standard but can be edited. More columns can be added by clicking the “Add mapping”-button (17).
  12. The first field of a new column is the displayed name in the webpart. This can be typed in by the user.
  13. The second field is the managed property. This field determines which data for the system to show in the column. An example could be “LastModifiedTime” which fetches the date when the result items were last modified.
  14. The last field lets the user choose how they want the column to be displayed. Following the example above, “LastModifiedTime” could be represented as text, so “Text” would be chosen from the drop-down menu.

The user can choose to have properties show in the following ways:

  • Text: The property is shown as a simple text.
  • Site: The property is displayed as a SharePoint site-icon.
  • Link: The property is displayed as a link. Be advised that if the property is not actually a link, the property link will not work, but it will still be displayed as a link.
  • TitleLink; TitleLink is the primary column (Used for title, name, or the most important property).
  • DocIcon: the property is shown as an icon representing the type of resulting document.
  1. The “Add mapping”-button lets the user add a new column to the search webpart.
  2. The “Apply”-button saves eventual changes that has not yet been applied.

Once the webpart has been configured, the page can be published/republished.  

4. End User Guide

Click here to go to the end user guide article for Webpart Search.

5. Notes

A list of managed properties can be found by following these steps:

  1. On the site where the Search webpart is to be added, click the cog-icon in the top right corner of the page.
  2. Choose “Site information”.
  1. Choose “View all site settings”.
  1. From the Site Settings page, choose “Schema” under the Search chapter.

Following the steps above takes the user to the Site Collection Administration – Managed Properties page. Here available managed properties are listed and can be searched through if the user is looking for information about a specific property.

This page is exemplified in the image below:

Often times, one would want the file icon to be displayed in the search results section of the webpart. This can be done by creating the following configuration in the columns-section when editing the webpart:

To insert a link to the parent site of the result, create the following configuration in the columns-section when editing the webpart:

5.1. Feature support White List

WorkPoint supports various search scopes and other settings in the Search webpart. There may, however, also be certain aspects which are not yet supported.

The purpose of this white list is to provide information about which aspects of the Search webpart are supported by WorkPoint - "supported" meaning that these a tested and verified to work.

5.1.1. Search scope

The following search scopes are supported by the WorkPoint Search webpart:

  • Everywhere: Searches across the entire tenant
  • Entire WorkPoint solution: Searches across the entire WorkPoint solution
  • Entity site: Searches through the current entity site
  • Entity site and below: Searches through the current entity site, as well as elements below in the hierarchy

5.1.2. Search queries

The WorkPoint Search webpart supports the following search query aspects

  • Search queries written in the query language. Information can be found here (external link)
  • Using the wildcard operator (*) to enable prefix matching or fetching all results
  • The full replaceable token, e.g. {Entity}, {Entity.Title}, or {Entity.User.Email}

5.1.3. Other

The WorkPoint Search webpart supports:

  • Setting Web Part size
  • Selecting number of results to fetch
  • Toggle Compact view
  • Toggle displaying the search bar
  • Toggle loading more results on scroll
  • Adding, moving, and removing columns
  • Sorting results alphabetically
Have more questions? Submit a request