Do not rely on string comparison in truncindex Upstream-commit: 9c1006c8bf2efc71659ec3b5412ce987661decca Component: engine