Similar Items: State-space models with regime switching