Update template define and elasticsearch.yml template

- Updated template define to avoid auto importing by ES.
- Update template to fix the warning message ( deprecation )