Send highlight info from Zoekt multi-match graphQL
Background
Related discussion: #501284 (comment 2243994538)
The highlighting for zoekt multi-match is being done on the backend. It's too slow because it's highlighting 10 full pages of results using the Ruby rouge library.
Proposal
- backend will send array of
highlightsin graphQL response. Array will contain eitherstart/end([ [start, end], [start, end] ]) oroffset/length([ [offset, length], [offset, length] ]) to allow the frontend to bold the matched text - backend will send the
languagein graphQL response, this can be passed to Highlight.js - backend will not highlight matches and will not provide
rich_textin graphQL response. This must be done in a separate MR once the frontend is consuming the new backend responses. This will allow for backwards compatibility across deploys