[Xapian-discuss] Text snippets
Graham Kann
graham.kann at gmail.com
Fri Jan 15 10:10:23 GMT 2010
Hello!
I'm new to the list, so please bare with me.
This is a follow-on to Shripad Bodas's question about snippets/highlighting.
I too have tried the Perl Search::Tools mode, and it works well. Only
problem is that it's slow - eg, when displaying results which exceeds (say)
50, the time taken to render the page (snipping and highlighting with
Search::Tools) can actually exceed the time to perform the search itself...
Seeing that our search frontend is coded in PHP, it makes sense to use PHP
exclusively (calling a Perl routine works, but you pay a double penalty -
the one mentioned above, plus the usual costs associated with calling
Perl). Is anyone aware of PHP code I can use to create excerpts/snippets
and keyword highlighting (with usage of stemming of course)?
Any pointers would be appreciated.
Thanks!
Graham
More information about the Xapian-discuss
mailing list