Scala AST generator for Elasticsearch objects