W3C home > Mailing lists > Public > www-talk@w3.org > March to April 1995

Re: Client-side highlighting; tag proposal

From: Lee Shombert <las@potomac.wash.inmet.com>
Date: Fri, 10 Mar 95 07:48:21 EST
Message-Id: <9503101248.AA02180@potomac.wash.inmet.com>
To: www-talk@www10.w3.org
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.
Received on Friday, 10 March 1995 07:47:01 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:16 UTC