incubator-lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From goran kent <gorank...@gmail.com>
Subject [lucy-user] Highlighter/create_excerpt returns null on long URL-type strings
Date Tue, 29 Nov 2011 08:18:12 GMT
Hi,

I just noticed something when trying to create highlighted excerpts of
website URLs:

  http://www.website.com/2011/01/12/9-questions-to-ponder-when-thinking-about-a-gift-for-online-sale-2

Highlighting itself works fine, but if the excerpt_length < length of
URL, then create_excerpt() returns null.  Perhaps create_excerpt()
needs to slice on punctuation as well as whitespace?

Glancing at Highlighter.c and it's dependence on "normal" looking
sentences and whitespace (and what constitutes a sentence boundary,
etc), I'm thinking this may not be as simple as first blush?


-- 
Regards,
gk

Mime
View raw message