Displaying 1 result from an estimated 1 matches for "excerpt_new".
Did you mean:
excerpt_len
2007 Jul 30
0
Ferret crashing ruby while highlighting
...gt;size && (matches[e_end].end_offset
<= start_offset +
excerpt_len)) {
running_score += matches[e_end].score;
e_end++;
}
pq_push(excerpt_pq,
excerpt_new(e_start, e_end - 1, running_score));
/* - 0.1 so that earlier matches take priority */
running_score -= matches[e_start].score;
}
e_end is never being incremented beyond 0, so e_end-1 is stored as the
excerpt. However I am not sure why that is....