[dokuwiki] Re: search results design suggestion

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 9 Oct 2005 14:56:44 +0200

On Sun, 09 Oct 2005 07:48:58 -0500 (CDT)
"Joe Lapp" <joe.lapp@xxxxxxxxx> wrote:

> >From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
> > Yes. The snippet creation isn't very efficient speedwise so I
> > restricted it. If someone could come up with a faster (but UTF-8
> > aware) method it would be great.
> 
> Snippet caching, done at page rendering time.  You'd make the snippet
> a bit longer, though, so you could use it in RSS feeds too, as long as
> the feeds still only show snippets from the most recent revision (even
> if we eventually show results from multiple revisions).  You'd just
> truncate the snippet to a word boundary for search results -- or even
> pre-calculate that boundary to save even more time.

Well snippets need to show context around the searched keywords to be
useful at all so your suggestion doesn't really work. When I searched
for a word which occurs at the end of the page I want to see that part
of the page in the snippet not the first 50 words of the text. Or did I
misunderstand you?

Andi

Other related posts: