From 32525602e2ae551b4d11ba9b2d25204e0f37adba Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 23 May 2022 13:24:38 +0100 Subject: [PATCH] Ensure changed index values are calculated correctly --- lib/src/doc/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/doc/index.rs b/lib/src/doc/index.rs index c24ef993..e1687315 100644 --- a/lib/src/doc/index.rs +++ b/lib/src/doc/index.rs @@ -29,7 +29,7 @@ impl<'a> Document<'a> { // Calculate old values let mut o = Array::with_capacity(ix.cols.len()); 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); } // Calculate new values