This post was most recently updated on December 3rd, 2022.
3 min read.This article explains how to add multiple aliases to one managed property in SharePoint Search Schema Management. Yes, it’s possible, just a bit unintuitive! I’ll explain the process below.
Solution
This seems to be another “gotcha”, that’s missing from the official documentation, but is super helpful to know when you happen to need it!
The way I encountered it was in a dev/staging environment, where certain automatically created Managed Property, owstaxIdValoTags (I’ll leave it up to you to figure out what the name is all about), had decided to disappear completely. That was a bit of a problem, as we had some existing functionality that depended on the property’s existence.
We were faced with either (1) figuring out what had happened and working with Microsoft Support to get it restored, (2) trying to force its recreation by importing the search configuration again, or (3) configuring the name of the property to work as an alias to an existing Managed Property.
We decided to not bother the support folks, nor take the risk of causing any weirdnesses by importing the configuration, and opted for option 3. Creating an alias is a really quick way to fix the issue, after all.
However, how to achieve this? We were working on a tenant where creating new mappings was known to be quite unstable, so we had to use an existing mapping.
You probably know to navigate to the tenant administration (instead of site collection settings) select “Search” and then manage search schema, but what then?
Well, obviously you can just look at existing mappings for further guidance. Let’s see below, what mapping of multiple aliases to one property looks like…
Okay, that doesn’t look too bad!
However, even though the value of the Aliases is described as “Alias1, Alias2”, guess what happens when you navigate to Managed Property’s edit view and add that value there?
This seems fine, right? A comma and a space as a delimiter, just like it’s shown in the property list – pretty promising, right?
Well, yeah, but it’s not correct. This is the error message you’ll get when trying to save:
The settings could not be saved because of an internal error: The managed property “RefinableString113” can’t have alias set to ValoTags, owstaxIdValoTags: The following invalid characters were used: ‘,’, ‘ ‘.
“The following invalid characters were used: ‘,’, ‘ ‘.”, huh?
So just adding the values like they’re shown doesn’t work. What now?
Well, no worries: the right way to add multiple aliases to a Managed Property is actually by separating them with a ‘ ; ‘, i.e. a semicolon. Armed with this piece of newly acquired knowledge, we’re able to follow the procedure outlined below:
Time needed: 5 minutes
Adding multiple Aliases to a Managed Property in SharePoint
- Navigate to Tenant Administration
- Select “Search”
- Select “Manage Search Schema”
- Search for a Managed Property that’s either:
(1) Mapped to the Crawled Property you want to use, or
(2) Isn’t mapped to anything yet.
(2.2)The RefinableXX – named, built-in properties are recommended for most use cases. - Click the property to edit it
- Scroll down to “Alias” and add your multiple aliases, separated by a semicolon
Example: “Alias1;Alias2”
- Click Save
And you should be good!
You should be taken back to the property list and your Managed Property should look something like this:
Well, won’t you look at that! The aliases look exactly like they should, even for our custom property mapping! Nice one.
After following these steps, you should have a functional configuration of two (or more) aliases for just one Managed Property!
- “Performing cleanup” – Excel is stuck with an old, conflicted file and will never recover. - November 12, 2024
- How to add multiple app URIs for your Entra app registration? - November 5, 2024
- How to access Environment Secrets with GitHub Actions? - October 29, 2024