Azure index Impact of Sitecore’s item name with conditional operator
In a recent project implementation, I implemented the azure
search to get the Sitecore items from the index, all working fine till it reaches
UAT, we had an issue with only one item along with his child items not getting
displayed in the list, but apart from that item all other items working
properly, then after analysis, I come to know that during UAT sitecore item name
has a conditional operator in it (and, or).
Now I understand the real issue, as azure is unable to return
results as this item is not getting indexed to azure.
Solution 1:
- Rename the item name with the conditional operator to “_” or just remove it.
Solution 2:
- Modify the query to return item name “#”
Solution 3:
- ·
Sitecore Item name validation config customization on save event.
Example:
if the item name is “sitecore/content/site/product description and feature”
Then we need to
return the item using the following format “sitecore/content/site/#product
description and feature#”
Note:
This same approach applies to
item name with digits and “-“ hypen
Happy programming 😊
Comments
Post a Comment