Customize site search

To search for content for pages that are created with other page types, you must customize the source files for the site as follows. You can download the source files from Acoustic Content Site application.

Define the type of pages to list in the search results

  1. In the \src\app\Constants.ts file, the design pages is defined as the type of pages to list in search results by default.
static readonly PAGE_TYPES_SEARCHED = ['Design Page'];
  1. Include the page type that you want to search to list in the search results. For example, to enable search in the site pages that are created from the standard page type make the following change.
static readonly PAGE_TYPES_SEARCHED = ['Design Page','Standard Page'];
  1. To enable search for site pages that are created from any page type, change the type of pages to list in search results as follows.
static readonly PAGE_TYPES_SEARCHED = [];