GroupDocs.Search for Java 23.6 Release Notes

Major Features

There are the following features, enhancements, and fixes in this release:

  • Implement progress tracking for the optimization process
  • Implement the ability to open an index with corrupted files
  • Optimize the loading speed of a large index

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
SEARCHNET-2850Implement progress tracking for the optimization processEnhancement
SEARCHNET-2881Implement the ability to open an index with corrupted filesEnhancement
SEARCHNET-2882Optimize the loading speed of a large indexEnhancement

Public API and Backward Incompatible Changes

Implement progress tracking for the optimization process

This enhancement adds an event to the index to track the progress of the optimization process.

Public API changes

Class OptimizationProgressEventArgs has been added to com.groupdocs.search.events package.
Method int getProcessedSegments() has been added to com.groupdocs.search.events.OptimizationProgressEventArgs class.
Method double getProgressPercentage() has been added to com.groupdocs.search.events.OptimizationProgressEventArgs class.
Method int getTotalSegments() has been added to com.groupdocs.search.events.OptimizationProgressEventArgs class.

Event EventHandler OptimizationProgressChanged has been added to com.groupdocs.search.events.EventHub class.

Use cases
String indexFolder = "c:\\MyIndex\\";

// Opening an index
Index index = new Index(indexFolder);

// Subscribing to the event
index.getEvents().OptimizationProgressChanged.add(new EventHandler<OptimizationProgressEventArgs>() {
    public void invoke(Object sender, OptimizationProgressEventArgs args) {
        System.out.println("Processed segments: " + args.getProcessedSegments());
        System.out.println("Total segments: " + args.getTotalSegments());
        System.out.println("Progress percentage: " + args.getProgressPercentage());
    }
});

// Optimizing the index
index.optimize();

Implement the ability to open an index with corrupted files

This enhancement implements the ability to open an index with corrupted segment files. Searches in the index with bad segments will be performed on non-corrupted segments, and the description of the error will be displayed for damaged segments.

Public API changes

None.

Use cases

None.

Optimize the loading speed of a large index

This optimization makes loading a large index from disk faster when it is opened.

Public API changes

None.

Use cases

None.