code: def create_index_from_fieldspec(self,
                                      table: str,
                                      fieldspec: FIELDSPEC_TYPE,
                                      indexname: str = None) -> None:
          
          if "indexed" in fieldspec and fieldspec["indexed"]:
              if "index_nchar" in fieldspec:
                  nchar = fieldspec["index_nchar"]
              else:
                  nchar = None
              self.create_index(table, fieldspec["name"], nchar,
                                indexname=indexname)
docs: Calls create_index based on a fieldspec, if the fieldspec has
          indexed = True.