private void addSortOptions(SearchRequestBuilder srb, List<String> sortOptions) {
        if (sortOptions != null) {
            sortOptions.forEach(
                    sortOption -> {
                        SortOrder order = SortOrder.ASC;
                        String field = sortOption;
                        int indx = sortOption.indexOf(':');
                        // Can't be 0, need the field name at-least
                        if (indx > 0) {
                            field = sortOption.substring(0, indx);
                            order = SortOrder.valueOf(sortOption.substring(indx + 1));
                        }
                        srb.addSort(field, order);
                    });
        }
    }
Initializes the indexes templates task_log, message and event, and mappings.
es6-persistence/src/main/java/com/netflix/conductor/es6/dao/index/ElasticSearchDAOV6.java