How to highlight each search term in a search using a different highlighting attribute.
To highlight each term in a search with different highlighting criteria,
The words listed in the HitsByWord table will be assigned to the highlight markings listed in BeforeHit and AfterHit. If HitsByWord contains more items than BeforeHit or AfterHit, items in BeforeHit and AfterHit will be reused in order.
Because HitsByWord treats each phrase as a single item, all words in a phrase will have the same color.
Because SearchResults.UrlDecodeItem does not preserve HitsByWord information, it cannot be used to create a SearchResults object to use with multiple highlighting.