code: @Deprecated
      public void createIndex(String indexName, String designDocName, String indexType,
                              IndexField[] fields) {
          if (indexType == null || "json".equalsIgnoreCase(indexType)) {
              JsonIndex.Builder b = JsonIndex.builder().name(indexName).designDocument(designDocName);
              for (IndexField f : fields) {
                  switch (f.getOrder()) {
                      case desc:
                          b.desc(f.getName());
                          break;
                      case asc:
                      default:
                          b.asc(f.getName());
                          break;
                  }
              }
              createIndex(b.definition());
          } else {
              throw new CouchDbException("Unsupported index type " + indexType);
          }
      }
docs: Create a new JSON index
  <P>
  Example usage creating an index that sorts ascending on name, then by year:
  </P>
  <pre>
  {@code
  db.createIndex("Person_name", "Person_name", null, new IndexField[]{
  new IndexField("Person_name",SortOrder.asc),
  new IndexField("Movie_year",SortOrder.asc)});
  }
  </pre>
  <P>
  Example usage creating an index that sorts ascending by year:
  </P>
  <pre>
  {@code
  db.createIndex("Movie_year", "Movie_year", null, new IndexField[]{
  new IndexField("Movie_year",SortOrder.asc)});
  }
  </pre>
  
  @param indexName     optional name of the index (if not provided one will be generated)
  @param designDocName optional name of the design doc in which the index will be created
  @param indexType     optional, type of index (only "json" for this method)
  @param fields        array of fields in the index
  @see Database#createIndex(String)