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
Key | Summary | Category |
---|---|---|
SEARCHNET-2850 | Implement progress tracking for the optimization process | Enhancement |
SEARCHNET-2881 | Implement the ability to open an index with corrupted files | Enhancement |
SEARCHNET-2882 | Optimize the loading speed of a large index | Enhancement |
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
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.