GroupDocs.Search for .NET 25.4 Release Notes
This page contains release notes for GroupDocs.Search for .NET 25.4
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
SEARCHNET-3472 | Add IsExtractionSuccessful property to the ExtractedData class | Enhancement |
SEARCHNET-3478 | Fix ArgumentException when indexing some specific CHM file | Fix |
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.