Which product are you using?
PDF.js Express Version 8.7.0
Detailed description of issue
When there are a lot of search results, some of them are duplicated. It is not a consistent behaviour for the same document and search string sometimes there are no duplicates, and the other times the different results are duplicated. Sometimes when I click on the duplicated search result, the original one is highlighted, sometimes not. I can provide the video of this behaviour, but I’m not sure how to upload it. On the screenshot the two search results at the beginning and end of page 4 are duplicates.
Expected behaviour
All the search occurances are displayed once in the search panel.
Does your issue happen with every document, or just one?
It happens on different documents. Looks like the prerequisite is lots of search results.
Link to document
(https://assets.aboutamazon.com/49/3f/3b3323574db3af860813ff0a3066/amazon-community-impact-report-puget-sound.pdf)
Code snippet
documentViewer.addEventListener('documentLoaded', () => {
instance.searchTextFull(searchQuery, { regex: true });
}