diff --git a/Directory.Build.props b/Directory.Build.props index 84aadd0..c97b3bb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,7 +5,7 @@ $(Company) Copyright © $(Company) $([System.DateTime]::Now.Year) $(Company)™ - 1.0.4-beta-1 + 1.0.5-beta-1 MIT diff --git a/src/Kentico.Xperience.Typesense/Collection/DefaultTypesenseIndexingStrategy.cs b/src/Kentico.Xperience.Typesense/Collection/DefaultTypesenseIndexingStrategy.cs index 834a670..0f44bd0 100644 --- a/src/Kentico.Xperience.Typesense/Collection/DefaultTypesenseIndexingStrategy.cs +++ b/src/Kentico.Xperience.Typesense/Collection/DefaultTypesenseIndexingStrategy.cs @@ -30,9 +30,10 @@ public class DefaultTypesenseCollectionStrategy : ITypesenseCollectionStrategy return Task.FromResult?>(result); } - public virtual Task GetTypesenseCollectionSettings() => + public virtual Task GetTypesenseCollectionSettings(bool enableNestedFields = false) => Task.FromResult(new TypesenseCollectionSettings() { + EnableNestedFields = enableNestedFields, Fields = new(){ new Field(BaseObjectProperties.ITEM_GUID, FieldType.String), new Field(BaseObjectProperties.CONTENT_TYPE_NAME, FieldType.String), diff --git a/src/Kentico.Xperience.Typesense/Collection/ITypesenseIndexingStrategy.cs b/src/Kentico.Xperience.Typesense/Collection/ITypesenseIndexingStrategy.cs index cf7dd49..bfb61e9 100644 --- a/src/Kentico.Xperience.Typesense/Collection/ITypesenseIndexingStrategy.cs +++ b/src/Kentico.Xperience.Typesense/Collection/ITypesenseIndexingStrategy.cs @@ -10,7 +10,7 @@ public interface ITypesenseCollectionStrategy /// Modified Typesense document. Task?> MapToTypesenseObjectsOrNull(ICollectionEventItemModel typesensePageItem); - Task GetTypesenseCollectionSettings(); + Task GetTypesenseCollectionSettings(bool enableNestedFields = false); Task> FindItemsToReindex(CollectionEventWebPageItemModel changedItem);