Fixing truncate update for search tables