ContentAI Supported Searchv1

Search component backed by the Content AI content-sources/search and content-sources/gensearch APIs. It merges results from configured public content sources and can optionally show a generative summary.

Note: Live search and generative summary require a Content AI API configuration for the AEM environment. Without valid API credentials and content sources, examples may show empty results or errors.

Examples

Card layout

Default card layout with generative summary toggle visible and enabled by default.

  1. contentSources: example-public-source
  2. resultsLayout: card
  3. resultsSize: 12
  4. genSearchEnabledByDefault: true
  5. contentSourceType: ACQUISITION
  6. placeholder: Search content
  7. genSearchToggleVisible: true
  8. sling:resourceType: core-components-examples/components/contentaisearch
    
        

    

List layout

List layout with the generative summary toggle hidden from visitors.

  1. contentSources: example-public-source
  2. resultsLayout: list
  3. resultsSize: 12
  4. genSearchEnabledByDefault: false
  5. contentSourceType: ACQUISITION
  6. placeholder: Search content
  7. genSearchToggleVisible: false
  8. sling:resourceType: core-components-examples/components/contentaisearch