store similarity as int in result.json