close

Filter

loading table of contents...

Studio Developer Manual / Version 2301

Table Of Contents

9.33 Quick Search Configuration

Starting with version 2207.2, CoreMedia comes with a quick search dialog, which supports the parallel search in different parts of the product, such as content and commerce entities.

The quick search dialog can be customized using the ConfigureQuickSearchPlugin. The given example shows the standard configuration that is used in the BlueprintFormsStudioPlugin.ts:

      new ConfigureQuickSearchPlugin({
  keepResults: true,
  imageDocTypes: [
    "CMPicture"
  ],
  actions: [
    ...
  ],
  types: [
    new AppQuickSearchType({
      title: QuickSearch_properties.QuickSearch_search_type_apps,
    }),
    new ContentQuickSearchType({
      id: "allContent",
      title: QuickSearch_properties.QuickSearch_search_type_content,
      limit: 5,
    }),
  ]
})

    

Example 9.145. Quick Search Default Configuration


The given list explains the configuration in detail:

  • keepResults: If set to true, the last result of the quick search is stored and shown again when the dialog is opened the next time. Otherwise the search is shown with cleared search results, everytime when the dialog is opened. If only one usage of the ConfigureQuickSearchPlugin sets this flag to true, it will be kept this way.
  • imageDocTypes: The field configures the list of document types that should be used for the image preview. The list is only extendable and will not be overwritten by different usages of the ConfigureQuickSearchPlugin.
  • actions: This field allows to configure custom actions that are included in the app search. More details about this are shown in the section below.
  • types: Configures the list of QuickSearchTypes. Every QuickSearchType is searched when the user inputs a search term. If a result is found, a search result section is rendered for the corresponding quick search type.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.