A collaborative filtering framework based on both local user similarity and global user similarity