[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glimpse -i -# bug



Hi Golda, everyone,

On Thu, 7 Oct 1999, Golda Velez wrote:

> You're right!   With -i and -2 or -1, -b gives an incorrect result.  I
> suspect this has something to do with agrep being called after the main
> glimpse index lookup.  I'll add it to the buglist, how urgent is this for you?

I've traced the problem to asearch() in agrep/asearch.c.  Evidently the
CurrentByteOffset is being calculated incorrectly there, *or* it is a
side-effect of the algorithm being used, I can't be sure.  With -i glimpse
uses a different algorithm (bitap I think) than without it.

Anyone familiar with agrep's algorithms?  Anyone have the two papers that
are mentioned in agrep/agrep.algorithms?

. . . Sean.