This requires PnP Search Web Parts for SharePoint
- Create a SharePoint Page and call it "Search"
- Add a "One Column" panel for the Search Box
- Add the "PnP - Search Box" Web Part
- Create a "One-third right" panel
- In the left section, add the "PnP - Search Results" Web Part
- In the right section, add the "PnP - Search Filters" Web Part
Search Results
- On the "PnP - Search Results" Web Part, set the data source to SharePoint
- Change the Query template to the Document Library you want to search. This can be mutiple places, but for todays example it will just be one.
- {searchTerms} - This connects it to the Search Box
- Path: https://{root site url}/sites/{my site}/{document library}
- Click "Apply"
- If you have custom field, you must make sure they are selected in "Selected properties"
- I have: "RefinableString01" which I have mapped to a "Division" field in my Document Library
- Leave all the rest of the default setting for "page 1" and go to "page 2" of the properties
- Set the layout as "List"
- Leave all the rest of the default setting and go to "page 3"
- For "Use input query text", turn on
- Set it to "Dynamic value"
- Connect to Source = PnP Search Box
- PnP - Search Box's proterties = "Search query"
- Use a default value = Off
- For "Connect to filter Web Part", turn on
- Use filter from this component = Refinable Filters - {Unique GUID}
- Leave all the rest of the default setting
Search Filter
- Use data from these Web Parts = Search Results - {Unique GUID}
- Under "Filter settings"
- Click "Edit" for Customize filters
- Filters:
- Created Date - Created
- Created By - CreatedBy
- File Type - FileType
- Division - RefinableString01
- Click "Save"
- Leave all the rest of the default setting
Save the whole page
No comments:
New comments are not allowed.