Using GroupDocs.Parser to search for “test” in the attached document, shows hits on page 1 (pageIndex 0) and page 2 (PageIndex 1) which would be correct.
Using the HighlightOptions reveals that the results on pageIndex 0, are actually the header and footer.
Results with pageIndex 1 are coming from the actual first page, which should be pageIndex 0.
There are no results from page two, but that seems to be the same bug as I already reported here.
HighlightOptions options = new HighlightOptions(20); var sr = parser.Search("test", new SearchOptions(false, false, false, true, options, options));
Test Document.zip (15.8 KB)
GroupDocs.Parser 20.12 in .NET was used.