Design search result highlighting
I was asked this
No reports yet. Sign in to say where you were asked it.
A search service already returns ranked document IDs and the query terms each one matched. Design the step that adds a short snippet to every result with each match marked. Snippets must come from the exact document version the result refers to, handle repeated and overlapping matches, never break Unicode characters, and never let document text turn into executable markup in the client. Cover how snippets are computed, where document text comes from, caching, latency, and the fallback when the right version is unavailable.
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
