Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ant-butcher-mmt opened this issue Jul 10, 2024 · 3 comments

Comments

@ant-butcher-mmt
Copy link

ant-butcher-mmt commented Jul 10, 2024

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
Copy link
Collaborator

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

@DavidSlavik
Copy link

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
Copy link

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.

@DavidSlavik DavidSlavik closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants