scan: Fix first-in-field term skipping
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 11 May 2011 08:57:22 +0000 (10:57 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 11 May 2011 08:57:22 +0000 (10:57 +0200)
commit56f6460914459b1162ffc68d7021e5a29b409f99
treeba4b0aad434b72d5f235f9ed0709472e16abd75e
parent3d5a55462e2b1a9404a522bfd71a0b2058b24f7a
scan: Fix first-in-field term skipping

Different check for first-in-feild term. The check for first-in-field
term could skip CJK entries for ICU normalized sort keys. In theory it
can still happen if CJK entries would map to exactly the same sequence
as first-in-field entries (highly unlikely). There was also a problem
with scan for the empty string. Before this fix, it  would result in
scan failure (no entries returned), because first entry would hit the
the first-in-field term. Fixes bug #4207.
index/rpnscan.c