feat(lib/model): add ability to specify elastic search options