Follow

Search Settings

Article published on the 20th of July 2020.

Contents

1. Introduction

Search Setting can be used for multiple purposes in WorkPoint. Generally they are used for making custom configurations for searches either in web parts of in the WorkPoint Express panel.

Search settings can be used to set up result groups, saved searches, and pre-define whether specific search settings are used for searching for entities or documents.

For detailed information about how to set up the Advanced Search web part using Search Settings, visit this article.

2. Requirements

There are currently no license requirements associated with the use of Search Settings.

3. Configuration

   3.1. Accessing Search Settings configuration page

Search Settings can be managed in the WorkPoint Administration:

Design of Bike0064 - Home - Google Chrome
  1. On your WorkPoint solution, click the "Home" button.
  2. In the bottom of the side panel, click the cog icon to access the WorkPoint Administration.
WorkPoint365 Administration - Google Chrome
  1. In the WorkPoint Administration, in the left side menu click "Search settings".

This opens the Search Settings page, which shows an overview of the currently configured search settings and column groups:

  1. Each Search Setting has a type of either Entity Search or Document Search, which indicates what each setting is used for. Entity search settings are used for searching for entities, and Document search settings are used for searching for documents.
  2. One of each type of search setting can be set to be the default search setting for that type.
  3. Click "Edit" to edit a search setting.
  4. Click "Delete" to delete a search setting. Note that search settings set as default cannot be deleted until another setting is set as default for that type.
  5. Click the "Add search setting" button to add a new search setting configuration.
  6. For Column groups, click "Edit" to  edit one of the column groups.
  7. Click "Delete" to delete a column group.
  8. Click the "Add column group" button to add a new column group configuration.
  9. Click the "Reset search settings" to set all search setting configurations including column groups back to default. Note that this will erase all custom search settings and column groups.

   3.2. Adding a new Search Setting configuration

The process of adding new search settings is outlined in the following steps.

Edit search settings - Google Chrome
  1. In the Search Settings configuration page, click the "Add search setting" button.

This opens the "Add search setting" page:

  1. Select whether this Search Setting should be shown in the Express panel in WorkPoint in the browser.
  2. Select whether this Search Setting should be the primary search setting of this type (Entity search or Document search).
  3. Select whether to remove duplicates from the search results returned by this search setting.
  4. Provide a name for the Search Setting. This should ideally relate to the function of the search setting.
  5. Select the operator for the search setting. Available options are:
  • Equals: Using this setting, the system will look for an exact match between the query and the results and return the result only if the match is true. Note, however, that an asterisk (*) can be added to the end of the search query in order to make the search behave as with the "Starts with" option below.
  • Starts with: Using this setting, an asterisk (*) will be appended to the search query, which makes the system return results which starts with the search query but may contain additional characters. An example of this could be the search query "Pix" returning a file titled "Pixelated Magazine".
  1. Select whether this search setting is used for Entity search or Document search.
  2. Insert a URL for the icon to be used for this search setting. This icon is used in the search settings tab. An example of these icons in the search settings tab is shown in the following image:
Design of Bike0016 - Home - Google Chrome
  1. Select how many search results to show on each result page.
  2. Select the placement in the search setting ordering.
  3. In the Term Set Filter field, you can insert the unique ID of a Term Set if you wish to use this search setting to only search within that Term set or underlying terms.
  4. If you want to further scope the search, you can use the unique ID of one of the Terms from the Term Set to only search within that Term.
  5. In the "Term Filter Managed Property", add the managed property you wish to use with the Term Set and Term ID.
  6. If no result groups are present for the Search Setting, click the "Add new result group" button.
  7. Provide a name for the result group.
  8. The ordering column can be used to order the result groups, if you have more than one. You can e.g. have different result groups for different file types in a document search Search Setting. An example is shown in the following image:
Design of Bike0016 - Home - Google Chrome

In this example, there are two different result groups; DocX and PDF. These can be selected in the drop down selector. The DocX result group is set up to only show results of file type "docx", using a base query of "filetype:docx" in the result group. Similarly, the PDF result group uses a base query of "filetype:pdf" to only show PDF files.

  1. The "Indentation" column determines the indentation of the result group. Indentation can be used to display a hierarchical structure of e.g. business modules in the selector, using Entity Search. An example is shown in the following image:
Design of Bike0016 - Home - Google Chrome

In this example, the "Companies" module has an indentation of 0, meaning it is not indented at all. The "ProjectsArchive", "Projects" and the "Contacts" modules have an indentation of 1, meaning they are moved slightly to the right of the Companies module. This can be useful for displaying if certain modules are parent. or child modules. This selector is only shown if the Search Setting is not utilizing Smart Navigation using Term Sets and or Terms.

  1. Select a column group to use for this result group. Column groups specify which columns to show for the displayed results. Custom column groups can be created from the Search Settings main configuration page. This process is described in section 3.3.
  2. The Content Types field can be used e.g. if only items with a certain content type should be  displayed in the results. An example of this could be if setting up an Entity Search Setting and only projects in a certain stage should be displayed in the results.
  3. In the "Refiners" field you can add the fields which should be available as refiners in the refinement panel in the webpart. If e.g. you wish to be able to refine results based on the date items were created, you can add the "Created" column in this field.
  4. If you wish to remove a result group, click "Remove".
  5. In the "Base Query" field, you can type in a filter query to use to filter out any results not matching the query. Only results matching the base query will be displayed in the results. This can be left empty to show all results. Managed properties can be used in the base query. An example base query could be: "filetype:pdf documentCategory:design documents". In this example, two managed properties are used; the "filetype" and "documentCategory" properties. Using a search setting with a result group which uses this base query will return results which is of file type PDF and which has a document category of "design documents". Note that multiple properties are separated simply by a space.
  6. If no saved searches are set up, you can add one by clicking "Add new saved search". Saved searches makes it possible to save commonly used search queries, including result group and search scope and quickly access them in the Express panel or the Advanced Search webpart.
  7. Provide a title for the saved search.
  8. Provide a search query for the saved search.
  9. Select which result group should be used to display the results of the search.
  10. Select the scope to search within. In this case, we have selected "Search in everything". Available options are:
  • Search in everything
  • Current entity
  • Current entity and below
  1. Click "Remove" to remove the saved search.
  2. Click the "Save" button to save the Search Setting.

   3.3. Adding a new Column group configuration

A column group defines which columns are shown for the search results of a Search Setting. Examples of columns could be a title column, an icon column, and various date columns. In the WorkPoint Express panel, columns are shown in the following way:

Design of Bike0064 - Home - Google Chrome

In this example, as column group with four columns have been set up; the Type, Filename, Author, and LastModifiedTime columns.

In the following material, we will go over how to create a custom column group to show a set of columns for a Document search setting.

  1. In the "Column groups" section of the Search Settings page, click "Add column group".
  1. Provide a name for the column group.
  2. In the "Columns" section, click the "Add column" field and select a data column to add to the column group. In this case, we select the "WorkPointIcon" column.
  1. Now that the "WorkPointIcon" column is selected, click the "Add" button to add the column to the group.
  1. We can now provide a title for the column. This is the title that will be displayed as the column title in e.g. the WorkPoint Express panel or the Advanced Search  web part.
  2. The "Field" value is automatically filled in by the system.
  3. The ordering selector allows you to reorder columns from left to right. A value of 0 means that the column is the first column from the left.
  4. Select the column type. In this case, we select "Icon" as that is the type of data that we wish this column to show.
  5. If needed, a column can be removed by clicking "Remove".

We can now add as many columns as we want to the group. In this example, we have added the following columns:

  1. When the desired columns have been added to the column group, click the "Save" button.

We can now use the column group for a search setting.

  1. In the "Search settings" section of the Search Settings page, click "Edit" for an existing search setting, or use the following method to add the column group to a new search setting:
  1. In the "Result groups" section of the settings for the search setting we have added two result groups; one to show docx documents and one to show pdf documents. For both of them, we have selected to use the "Custom Document Columns" column group created previously in this section.
  2. Click the "Save" button.

After clearing the WorkPoint 365 browser cache, when using the Search Setting which uses the custom column group will display data in the configured columns. An example is shown below:

Design of Bike0125 - Home - Google Chrome
Have more questions? Submit a request