almost, building=detached is a residential building, in this case it's more correct to use building=synagogue. 
osm wiki is your friend, it has almost all answers. and if not - feel free to ask community on forum or in telegram.
I'll fix it.