Updates file entity
Updates flag
Updates search api