From 1ca35b2fbb91f9b48f32f014f5dab64900d800dd Mon Sep 17 00:00:00 2001 From: arkadiuszbiel Date: Sat, 5 Oct 2019 14:36:47 +0200 Subject: [PATCH] Obsolete instead of remove functions --- .../Search/UmbracoIndexesCreator.cs | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs b/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs index beecb85ae6..73b7343b16 100644 --- a/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs +++ b/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using Umbraco.Core.Logging; using Umbraco.Core.Services; using Umbraco.Examine; @@ -57,7 +58,8 @@ namespace Umbraco.Web.Search new CultureInvariantWhitespaceAnalyzer(), ProfilingLogger, LanguageService, - UmbracoIndexConfig.GetContentValueSetValidator()); + GetContentValueSetValidator() + ); return index; } @@ -70,7 +72,7 @@ namespace Umbraco.Web.Search new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_30), ProfilingLogger, LanguageService, - UmbracoIndexConfig.GetPublishedContentValueSetValidator()); + GetPublishedContentValueSetValidator()); return index; } @@ -82,10 +84,30 @@ namespace Umbraco.Web.Search CreateFileSystemLuceneDirectory(Constants.UmbracoIndexes.MembersIndexPath), new CultureInvariantWhitespaceAnalyzer(), ProfilingLogger, - UmbracoIndexConfig.GetMemberValueSetValidator()); + GetMemberValueSetValidator() + ); return index; } + [Obsolete] + public virtual IContentValueSetValidator GetContentValueSetValidator() + { + return UmbracoIndexConfig.GetContentValueSetValidator(); + } + [Obsolete] + public virtual IContentValueSetValidator GetPublishedContentValueSetValidator() + { + return UmbracoIndexConfig.GetPublishedContentValueSetValidator(); + } + /// + /// Returns the for the member indexer + /// + /// + [Obsolete] + public virtual IValueSetValidator GetMemberValueSetValidator() + { + return UmbracoIndexConfig.GetMemberValueSetValidator(); + } }