B
Bonzai 2
Web Parts

Advanced Search

Unified search with refinement filters, typeahead, and multiple result templates.

SearchFeature Parity: 85%

Component Consolidation

Advanced Search consolidates the legacy Search Box and Search Refinement web parts into a single, unified component.

Get Advanced Search Working in 3 Steps

15-30 minutes

Prerequisites

  • Bonzai 2 package installed on your site
  • SharePoint Search configured and indexing content
1

Create a Search page

Create a new page named "Search" with a full-width layout.

2

Add the Advanced Search web part

Edit the page, click +, search for "Advanced Search", and add it to the full-width section.

3

Configure refiners and publish

Open the property pane, set refinement categories, choose a result template, and publish.

When to Use This Web Part

Use this when you need to...

  • Create a centralized enterprise search page
  • Provide users with refined search across all content
  • Enable filtering by content type, date, author, and custom metadata
  • Replace the classic Bonzai header search experience
  • Build category-specific search pages (documents, people, news)

Best page locations

  • Search Center page — dedicated enterprise search
  • Site homepage — embedded search experience
  • Content-specific pages — filtered search (e.g., "Search Policies")

Consider alternatives when...

  • Simple document search — use Document Portal for document-focused search
  • People search only — use Employee Directory
  • News search only — use News Rollup with filtering

Related web parts:

Document Portaldocument-focused search with favouritesEmployee Directorypeople search with A-Z browsing

Step-by-Step Configuration

1

Create a new Search page

Go to Site Pages, create a new page named "Search" or "Find Content". Use a single-column full-width layout.

Add the page to your site navigation for easy access.

2

Add a full-width section

In edit mode, add a new section with a full-width layout to give search maximum space.
3

Add the Advanced Search web part

Click the + button, search for "Advanced Search", and add it to your section.
4

Configure the title and default query

Open the property pane and set a title. Set "Default Query" to * to search all content.
5

Configure refiners

In "Refiners Config", enter refiners in format "Label:Property:DefaultValue;..." (e.g., "File Type:FileType:;Author:Author:").

Common managed properties: contentclass, FileType, Author, ModifiedDate, Path

6

Set items per page and default view

Configure items per page (10-20 is typical) and choose a default view: List, Cards, or Table.
7

Configure display options

Toggle "Show Search Box", "Show Refiners", and "Show View Switcher" based on your needs.
8

Publish and test

Save and publish. Test searches for various content types and verify refinement filters work.

Common Configurations

Copy these ready-to-use configurations:

Enterprise Search Center

Full-featured search for all site content

Best for: Dedicated Search page
Configuration
titleSearch
defaultQuery*
refinersConfigFile Type:FileType:;Author:Author:
itemsPerPage20
defaultViewList
showRefinersOn

Document Search

Focused search for documents only

Best for: Document center pages
Configuration
titleFind Documents
allowedContentTypesSTS_ListItem_DocumentLibrary
refinersConfigFile Type:FileType:;Author:Author:
defaultViewList

Homepage Search Widget

Compact search for homepage integration

Best for: Homepage hero section
Configuration
showSearchBoxOn
showRefinersOff
itemsPerPage5
chromeTypeNone

Site-Wide Search

Comprehensive search with all refiners

Best for: Navigation-linked search
Configuration
titleEnterprise Search
refinersConfigContent Type:contentclass:;File Type:FileType:;Author:Author:
itemsPerPage20
defaultViewCards
showViewSwitcherOn

Best Practices

Use descriptive placeholder text

Help users understand what they can search for with placeholder text like "Search documents, news, and people..." rather than just "Search".

Configure relevant refiners

Only show refinement categories that make sense for your content. Too many refiners can overwhelm users; 3-5 is typically ideal.

Create multiple search pages for different needs

Consider dedicated search pages for different content types: "Search Documents", "Search People", "Search News" with pre-configured filters.

Vertical dropdown requires managed properties

The vertical dropdown filters require corresponding managed properties configured in SharePoint search schema. Contact your admin if filters don't work.

Troubleshooting

Still need help? Contact Bonzai Support


Reference

Technical details for developers and advanced users.

Consolidated Components

Advanced Search consolidates functionality from two legacy Bonzai components:

Classic ComponentLocationFunction
Search BoxHeader (bonzai.min.js)Search input with typeahead, vertical dropdown
Search RefinementSearch pagesFiltering panel with refiners and counts
Search Result Templatesbonzai.min.jsResult display formatting

Property Pane Configuration

Title Settings

PropertyTypeDescription
titleTextWeb part title
titleUrlTextOptional URL to make the title clickable
titleIconOptionDropdownTitle icon mode: Custom or None
titleIconNameIcon PickerFluent UI icon picker (default: Search)
titleIconUrlTextCustom icon URL (overrides icon name)
descriptionText (Multiline)Optional description below the title
showMoreUrlTextURL for footer link
showMoreTextTextText for footer link (default: View All Results)

Search Settings

PropertyTypeDescription
defaultQueryTextDefault search query (use * for all content)
resultSourceIdTextSharePoint Search result source ID or name
searchScopeTextLimit search to a specific path (e.g., /sites/Intranet/Documents)

Refiners Configuration

PropertyTypeDescription
refinersConfigText (Multiline)Refiners in format "Label:Property:DefaultValue;..." (e.g., Content Type:contentclass:;File Type:FileType:)
refinersSortOrderDropdownSort refiners by count or alphabetically
maxValuesPerRefinerSlider (5-50)Maximum values to show per refiner (step: 5)

Filter Restrictions

PropertyTypeDescription
allowedContentTypesText (Multiline)Comma-separated allowed content types (e.g., STS_ListItem_DocumentLibrary)
allowedFileTypesTextComma-separated allowed file types (e.g., docx,xlsx,pdf,pptx)

Display Settings

PropertyTypeDescription
defaultViewDropdownDefault result view: List, Cards, or Table
itemsPerPageSlider (5-50)Results per page (step: 5, default: 20)
showSearchBoxToggleShow search input box (default: On)
showRefinersToggleShow refinement filters panel (default: On)
showViewSwitcherToggleShow view switcher (List/Cards/Table) (default: On)

Appearance

PropertyTypeDescription
chromeTypeDropdownChrome type: None, Title Only, Border Only, Title and Border
fixedHeightSlider (0-800)Fixed height in pixels (0 = auto)

Features Checklist

  • ✅ Search input box
  • ✅ Typeahead suggestions
  • ✅ Search vertical dropdown
  • ✅ Refinement panel with filters
  • ✅ Filter counts display
  • ✅ Multi-select filters
  • ✅ Clear filters functionality
  • ✅ Multiple result display templates
  • ✅ Pagination
  • ⚠️ Header integration requires SPFx Application Customizer

Implementation Changes

AspectClassicModern
Technologybonzai.min.js + JSOMSPFx + React
Search InputHeader integrationStandalone or embedded
TypeaheadBrick configurationProperty pane
RefinementSeparate componentIntegrated panel
RefinersCAML-basedSharePoint Search REST API

Migration Benefits

  1. Flexibility: Can be placed on any Modern page
  2. No Master Page: Works without customization
  3. Unified Experience: Single web part for complete search
  4. Property Pane: No Brick login required for configuration
  5. Real-time Preview: See changes immediately while editing