Bugs item #1104040, was opened at 2005-01-17 17:31
Message generated for change (Comment added) made by msashnikov
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=1104040&group_id=59548

Category: searcher
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael (msashnikov)
Assigned to: Doug Cutting (cutting)
Summary: Missing spaces in summary (easy to fix)

Initial Comment:
In some cases the following line adds an empty fragment 
to the search summary (see 
net.nutch.searcher.Summarizer class):

excerpt.add(new Fragment(text.substring(offset, 
t.startOffset())));

As a result it leads to merging two fragments (second 
always will be highlighted) without any space between 
them. The problem can be easily fixed modifying the 
toString method in the net.nutch.searcher.Summary 
class (just check if the previous symbol in the 
StringBuffer is space and add one if it is not), however I 
am not sure whether it is a right way to fix this bug. 
Probably it should not add fragments at all.

I am not sure if it is an old bug or was added to 0.6. 

----------------------------------------------------------------------

>Comment By: Michael (msashnikov)
Date: 2005-01-17 17:37

Message:
Logged In: YES 
user_id=1185001

>Probably it should not add fragments at all.

Sorry I forgot to add word 'empty'. I meant it should not add 
empty fragments.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=1104040&group_id=59548


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to