first version of elasticsearch backend, very rough