offset matching for gzipped documents