A couple of times lately, I've brought up the notion that clients should
handle highlights (the terms that match a search query) better. It's
rather inefficient to force the search server to proxy documents just so
that it can add highlights. Worse, it takes the decision about *how* to
highlight (bold? underline? surround with asterisks?) out of the user's
hands (barring some sort of ugly protocol for telling the server).
We'd like to suggest a very simple approach -- a highlight tag. This way,
our server could add the highlight tag in the appropriate places, but it
would be up to the browser (under the user's control, presumably) to decide
how to identify highlights in the text (turn them red, underline,
whatever). An appropriate UI enhancement would be the addition of a "next
highlight" button or menu item and optionally a "previous highlight"
button.
However this is done, it should have an eye toward eventually allowing a
client to receive a URL and highlight information from the search server,
so that, armed with those two smidgens of data, it can fetch the document
and add the highlights all by itself.
I'd like to hear (1) suggestions on the form of this tag (we're assuming
something terribly simple such as <hl> and </hl>) and (2) objections or
concerns.
I'm cross-posting to www-talk and www-html;let's keep the markup-specific
discussion (which may be all of it) on -html.
Nick