[<%= @title %>_encoder] type = "ESJsonEncoder" index = "<%= @index %>" es_index_from_timestamp = <%= @es_index_from_timestamp %> <% if @fields -%> fields = [ <%= @fields.sort.collect{ |x| '"%s"' % x }.join(", ") %> ] <% end -%>