code: private boolean isRefreshIndexes()
      {
  
          if (clientProperties != null)
          {
  
              Object refreshIndexes = clientProperties.get(ESConstants.ES_REFRESH_INDEXES);
  
              if (refreshIndexes != null && refreshIndexes instanceof Boolean)
              {
                  return (boolean) refreshIndexes;
              }
              else
              {
                  return Boolean.parseBoolean((String) refreshIndexes);
              }
  
          }
          else
          {
              return this.setRereshIndexes;
          }
      }
docs: Checks if is refresh indexes.
  
  @return true, if is refresh indexes