Jan 27 2022 10:19 AM
Jan 27 2022 10:19 AM
I have a SharePoint Online site. In the Documents library I have added a new field of type "Choices" with 'Allow multiple selections' ticked.
When I populate this field with values and use Microsoft Search, it will only return results when there is one value selected.
Is it possible to have it search the individual values?
If I search for Carrot, nothing is found...
Jan 27 2022 11:09 AMSolution
@MartinDAZN it's possible to search for distinct values inside a multi-value field. Unfortunately, the field/column you created has been crawled as a single value field. That's why you do get results when you're searching for a single value and there are items that only have that one value in that field.
You'll have to make some changes in order to get results that partially match the contents of the multi-value field (partially as in search for one of the options that have been selected).
> At the site collection or tenant level (up to you) you'll have to navigate to the Search Schema.
- Site Collection Level (make sure you click on the Search Schema under Site Collection Administration):
- Tenant level (this is in SPO Admin > More Features > Search):
> Once you're on either of those, click to create a new managed property:
> Give it a name and select the options that are relevant to you. It will complain if you use funny characters in the name or alias, but follow the prompts and you'll be fine.
The two options you definitely need to check are
- Allow Multiple Values
Both of these need to be checked for this to work.
> Also, at the bottom of the page, you'll have to select which crawled property this managed property will be mapped to. Your property will be something like ows_testMulti (judging from the screenshots). Click on the coloured "Add a Mapping" button:
Type in the name of your field and click on "Find":
Select the ows_ property that appears and click on OK.
At this point, you're almost done. Ensure that your managed property has been created correctly by searching for it in the managed properties (you'll be taken there once you finish creating the property). You'll see something like this (depending on your actual configuration while creating the field):
Now, you're really done with configuring this. At this point, you'll have to reindex your list/library and wait for Search to do its thing.
You should be able to search for single values matching part of a multi-value field like so:
Hope you find this useful, good luck!
Jan 27 2022 11:52 AM - edited Jan 27 2022 12:06 PM
Thanks MGR, that has worked.
I found a managed property had been created automatically but it needed to be edited as you described in order to work.