Revert "Fixed the performance issue. Creating IndexWriterConfig each time we open the indexwriter consumes lots of cpu resources"

This reverts commit a204bf43eb88ae40dbe544cf88041cf0e41e3bac.