feat(factory): add factory for es/indices