Ensure changed index values are calculated correctly

This commit is contained in:
Tobie Morgan Hitchcock 2022-05-23 13:24:38 +01:00
parent 61b1e547b6
commit 32525602e2

View file

@ -29,7 +29,7 @@ impl<'a> Document<'a> {
// Calculate old values // Calculate old values
let mut o = Array::with_capacity(ix.cols.len()); let mut o = Array::with_capacity(ix.cols.len());
for i in ix.cols.iter() { for i in ix.cols.iter() {
let v = i.compute(ctx, opt, txn, Some(&self.current)).await?; let v = i.compute(ctx, opt, txn, Some(&self.initial)).await?;
o.push(v); o.push(v);
} }
// Calculate new values // Calculate new values