herd
herd copied to clipboard
Return hit highlight information in Global Search
As a Data Analyst I want to understand the context of my search term in each result so I understand why search hit appears in the results.
Many users have reported confusion as to why search results appear in their result set.
Acceptance Criteria
- Global Search endpoint includes context information for each hit in each result
- Hit includes name of field where match occurred
- Hit includes entire contents of field where match occurred OR field contents including several words before and after match. Fragment(s) will be stripped of all HTML tags except the actual highlighting tags.
- Hit includes indication of which term matched. This must be formatted acceptably to enable highlighting in UI.