@Override
  protected void parseCreateField(ParseContext context, List<Field> fields) throws IOException {
    ValueAndBoost valueAndBoost =
        StringFieldMapper.parseCreateFieldForString(
            context, null /* Out null value is an int so we convert*/, fieldType().boost());
    if (valueAndBoost.value() == null && fieldType().nullValue() == null) {
      return;
    }

    if (fieldType().indexOptions() != NONE || fieldType().stored() || fieldType().hasDocValues()) {
      int count;
      if (valueAndBoost.value() == null) {
        count = fieldType().nullValue();
      } else {
        count = countPositions(analyzer, simpleName(), valueAndBoost.value());
      }
      addIntegerFields(context, fields, count, valueAndBoost.boost());
    }
  }