Description
When attempting to sync content using Optimizely Graph, you may encounter the error message: "Syncing content with more fields is not supported." This issue arises when the system exceeds the limit of 100,000 mappings. It is important to note that this limit pertains to mappings, not fields, and each searchable field can have multiple mappings.
Steps
To resolve this issue and successfully sync your content, follow these
steps:
-
Reduce Field Mappings:
-
Add the attribute
[GraphProperty(PropertyIndexingMode.OutputOnly)]or set the indexing type via the Conventions API on properties not needed in searches/filters. This reduces the number of mappings for each field, helping to stay within the limit.
Attribute Method
https://docs.developers.optimizely.com/content-management-system/docs/install-and-configure-optimizely-graph-on-your-site#outputonly-mode
Example:
[GraphProperty(PropertyIndexingMode.OutputOnly)] public virtual string AStringProperty { get; set; }
Conventions API methodhttps://docs.developers.optimizely.com/content-management-system/docs/conventions-api#set-indexing-type-for-fields
Example:
conventionRepo.ForInstancesOf () .Set(page = page.Keywords, IndexingType.Searchable) .Set(page = page.Price, IndexingType.Queryable) .Set(page = page.Quantity, IndexingType.OnlyStored);
-
-
Adjust Content Expansion Depth:
-
Consider reducing the depth of content expansion. For instance, if the current depth is set to 3, lowering it to 2 can significantly decrease the number of mappings required.
https://docs.developers.optimizely.com/content-management-system/docs/install-and-configure-optimizely-graph-on-your-site#disable-inlining-contents-in-the-expanded-field-of-reference-properties
-
-
Optimize Field Usage:
- Review the fields being synchronized and identify any that can be consolidated or removed if they are not critical to the operation.
-
Ensure that only essential fields are included in the synchronization process to minimize mapping usage.
https://docs.developers.optimizely.com/content-management-system/docs/conventions-api#exclude-all-content-types-except-some
Please sign in to leave a comment.