When do we need to close and open the index in Elastic search

The open/close API is just for management. It is not required to open nor close an index through it's lifetime.

I am also not understanding your question. Are you saying that you have changed/updated the index analyzer settings?