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

V4.0 Lucene 4.8.0-beta00017 breaking changes #406

Open
wants to merge 2 commits into
base: release/4.0
Choose a base branch
from

Conversation

DevAndersen
Copy link

I've attempted to address the problems raised in #401, relating to breaking changes in the version 4.8.0-beta00017 Lucene packages.

The code now compiles with the beta00017 packages, utilizing the SnapshotDirectoryTaxonomyIndexWriterFactory class from Lucene, however there are three unit tests that now fail which previously succeeded. These are:

  • GivenASyncedLocalIndex_WhenTriggered_ThenSyncedBackToMainIndex
  • GivenASyncedLocalIndex_ThenSyncedBackToMainIndexOnSchedule
  • GivenAMainIndex_WhenReplicatedLocally_TheLocalIndexIsPopulated

The problem lies in the changed implementation of the ReplicateIndex method, as I have been unable to figure out exactly how to get it working properly. It now throws System.InvalidOperationException: 'No index commit to snapshot', which results in the method returning early before it can fully completing the work of the method.

I hope I've done a bit of the work, perhaps someone else more knowledgeable can fix up the remaining outstanding problems.

@Shazwazza
Copy link
Owner

I will get to this soon, there's been some changes in v3 that were required, also relating to replicator, etc... Still waiting on community feedback but once that is shipped, the re-merge of v3 - v4 with additional fixes will be in place.

@skttl
Copy link

skttl commented Mar 11, 2025

I tried building this PR, and replaced it on an existing site with the v4.0.0-beta-1 (in order to be able to upgrade Umbraco to 13.7.1). Seems to work ok!

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

Successfully merging this pull request may close these issues.

3 participants