Use of private access modifiers where applicable, to enforce information hiding
(Referring to Elastic Search controller): The Singleton pattern usually uses a private constructor to restrict the creation of new instances by other classes. See here https://en.wikipedia.org/wiki/Singleton_pattern
ie. The setClient() method in the elasticsearch controller should be private. It's probably better to follow the singleton pattern that we saw in the lab slides.
Use of private access modifiers where applicable, to enforce information hiding (Referring to Elastic Search controller): The Singleton pattern usually uses a private constructor to restrict the creation of new instances by other classes. See here https://en.wikipedia.org/wiki/Singleton_pattern
ie. The setClient() method in the elasticsearch controller should be private. It's probably better to follow the singleton pattern that we saw in the lab slides.