Forum Discussion
Search ONLY in metadata column
Hi,
i have a library with some metadata column, as example:
By default on SharePoint search if i search for "Best Practice" it shows me also document that content contain also that word.
I want to limit the research on these column ONLY.
So the result will be only the last file.
Is it possibile?
Thanks
3 Replies
Hello Saaam1165
it's default, when you use the Microsoft Search box and you can't change ist.
You can filter by columns in your library:
Or you can build a custom search with the PnP Modern Search WebParts https://microsoft-search.github.io/pnp-modern-search/ and configure the webparts with a match only in configured columns: https://www.mehr365.com/volltreffer-exakte-uebereinstimmung-in-der-suche/
Best, Dave
- Saaam1165Copper Contributor
Hi Dave,
what about that?
The issue is that i can't edit the schema for these properties, maybe i miss some authorization
Thanks
Hi Saaam1165
you can map your crawled properties to managed properties, but only with enough SharePoint Admin permissions over the SharePoint Admin Center in M365: https://learn.microsoft.com/microsoft-365/community/how-do-site-columns-become-managed-properties-thus-available-for-search?WT.mc_id=DX-MVP-5004845
You also have to do this if you use the PnP modern search webparts and want to configure the search.
Before mapping:
Map the crawled property ows_choicecolumn to an existing managed property:
After mapping (it always takes at least 15 minutes for the search schema to be updated)
You need SharePoint Admin permissions to configure the M365 search schema.
Best, Dave