Kentico / xperience-by-kentico-lucene

Xperience by Kentico search integration with the latest 4.8 beta version of Lucene.NET
MIT License
4 stars 5 forks source link

Lucene search indexes not being saved to blob storage when custom storage initializer/provider is set #60

Closed ant-butcher-mmt closed 3 months ago

ant-butcher-mmt commented 4 months ago

Describe the bug When running in a load balanced environment we would want the search indexes to be stored to a shared storage medium i.e. blob storage.

To Reproduce Steps to reproduce the behavior: I have a custom module with the following code which should map where lucene indexes are stored into a blob storage container Go into Development > Search and choose to rebuild an index

        var luceneStorage = AzureStorageProvider.Create();
        luceneStorage.PublicExternalFolderObject = true;
        luceneStorage.CustomRootPath = "mediacontainer";
        StorageHelper.MapStoragePath("~/App_Data/LuceneSearch", luceneStorage);

Expected behavior Indexes are saved into blob storage.

Current using Kentico.Xperience.Lucene 6.1.0 Kentico.Xperience.Core 29.0.2

We have configured media library storage to store to blob storage using:

        var mediaProvider = AzureStorageProvider.Create();
        mediaProvider.CustomRootPath = "mediacontainer";
        mediaProvider.PublicExternalFolderObject = true;
        StorageHelper.MapStoragePath("~/assets/media", mediaProvider);

Which does work as expected

liparova commented 4 months ago

Hi, thank you for bringing this to our attention. We will investigate and keep you informed of our progress.

DavidSlavik commented 3 months ago

Hello there,

I'm sorry for your troubles, but unfortunately, this is not a supported scenario.

We are considering whether to place this extension on the roadmap. We'll keep you posted.

DavidSlavik commented 3 months ago

Hello,

We would have to fork Lucene.NET and create customized source code. Instead, we decided to introduce support for web farms.

You can expect this to come by the end of this week.