Detailed description of issue
We have been using textSearchInit api to achieve multi search functionality and it has been working. we want to apply custom color the each term results.
Expected behaviour
Each term results highlight color should be unique .
Does your issue happen with every document, or just one?
Yes
Thanks for the quick reply. we tried the above scenario it worked but after clearing search results they are still holding highlights in the document . how to delete only search highlighted results?(need to keep existing annotations in the document which we draw using annotation tab)
One way to distinguish the annotations created from the search result would be to use the setCustomData property as they are created. Then delete all annotations that have this property when needed.
An example usage of this API is available here: