Doc and param for the elasticsearch server