Re: Client-side highlighting; tag proposal

Lee Shombert (las@potomac.wash.inmet.com)
Fri, 10 Mar 1995 07:51:51 +0500


Wayne says...
> I agree with Nick that clients should be able to highlight search
> results, but I suggest a simpler approach - when a server sends a
> response to a search (and only the server *really* knows when this
> is), it should send a keyword attribute in the HTML header, containing
> the terms it thinks are relevant to the results (which may not be all
> the terms specified.) Then the browser can (or not) implement a simple
> way to find and highlight the terms. Most (all?) browsers can already
> search on text, so this is a very simple extension for them. It
> relieves the server of having to muck with the actual HTML text it
> sends, and uses existing mechanisms.

Having the highlight tag actually seems simpler to me. The search engine
(but not the http server) knows what constitutes a match as the search
results are being accumulated. It is very easy for the search engine to
insert highlight tags at this point. And it is a no-brainer for the browser
to handle the higlight tags.

If the client is to reconstruct the matching patterns by searching on text,
then the highlighting function is limited to searches that are simple text
matches. For instance, simple clients probably would not support
highlighting when the seach criterion was "the document has a paragraph that
contains both the words 'test' and 'diagnostic'". The client would likely
highlight all words 'test' and 'diagnostic', even if they did not appear in
the same paragraph.

Let the search engine report on its results with the highlight tag - this
allows any search algorithm to report on any useful information. This also
means that simple clients will work with any search algorithm.