Use instance method to configure setting.
This is useful to change ES server or index by request context.
Merge pull request #3 from y310/instance-method-config

Use instance method to configure setting