Search only finds results on first page for certain DOCX in .NET

Searching the attached document for “text” only returns hits form the first page, although the word exists on all three pages. GroupDocs Parser 20.12 was used with the following code:
Aspose Sample.zip (42.6 KB)

using (Parser parser = new Parser("Aspose Sample.docx"))
{
// Search a keyword with page numbers
IEnumerable<SearchResult> sr = parser.Search("text", new SearchOptions(false, false, false, true));

// Iterate over search results
foreach (SearchResult s in sr)
{
    // Print an index, page number and found text:
    Console.WriteLine(string.Format("At {0} (page {1}): {2}", s.Position, s.PageIndex, s.Text));
}
}
1 Like

@Clemens_Pestuka

We are investigating this issue at our end. Your investigation ticket ID is PARSERNET-1728. You’ll be notified in case of any update.

1 Like

The issues you have found earlier (filed as PARSERNET-1728) have been fixed in this update. This message was posted using Bugs notification tool by albertakhmetov