Removing unrelated documents