docs: def _create_query_string(params):
          """
          Support Elasticsearch 5.X
          """
          parameters = params or {}
  
          for param, value in parameters.items():
              param_value = str(value).lower() if isinstance(value, bool) else value
              parameters[param] = param_value
  
          return urlencode(parameters)