GroupDocs.Search for .NET 25.4 Release Notes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
SEARCHNET-3472Add IsExtractionSuccessful property to the ExtractedData classEnhancement
SEARCHNET-3478Fix ArgumentException when indexing some specific CHM fileFix

Public API and Backward Incompatible Changes

Add IsExtractionSuccessful property to the ExtractedData class

This enhancement adds the IsExtractionSuccessful property to the ExtractedData class. This allows you to determine whether data extraction from a document was successful.

Public API changes

Property Boolean IsExtractionSuccessful has been added to GroupDocs.Search.Common.ExtractedData class.

Use cases
string indexFolder = @"c:\MyIndex";
string documentPath = @"c:\MyDocuments\MyDocument.pdf";

// Extracting data from a document
Extractor extractor = new Extractor();
Document document = Document.CreateFromFile(documentPath);
ExtractionOptions extractionOptions = new ExtractionOptions();
extractionOptions.UseRawTextExtraction = false;
ExtractedData extractedData = extractor.Extract(document, extractionOptions);

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

if (extractedData.IsExtractionSuccessful)
{
    // Indexing the data
    ExtractedData[] data = new ExtractedData[]
    {
        extractedData
    };
    index.Add(data, new IndexingOptions());

    // Searching in the index
    SearchResult result = index.Search("Einstein");
}

Fix ArgumentException when indexing some specific CHM file

This fix eliminates an error when indexing some specific CHM files.

Public API changes

None.

Use cases

None.