code: def search_shards(self, index=None, params=None):
          
          return self.transport.perform_request(
              "GET", _make_path(index, "_search_shards"), params=params
          )
docs: The search shards api returns the indices and shards that a search
          request would be executed against. This can give useful feedback for working
          out issues or planning optimizations with routing and shard preferences.
          `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html>`_
  
          :arg index: A list of index names to search, or a string containing a
              comma-separated list of index names to search; use `_all` or the
              empty string to perform the operation on all indices
          :arg allow_no_indices: Whether to ignore if a wildcard indices
              expression resolves into no concrete indices. (This includes `_all`
              string or when no indices have been specified)
          :arg expand_wildcards: Whether to expand wildcard expression to concrete
              indices that are open, closed or both., default 'open', valid
              choices are: 'open', 'closed', 'none', 'all'
          :arg ignore_unavailable: Whether specified concrete indices should be
              ignored when unavailable (missing or closed)
          :arg local: Return local information, do not retrieve the state from
              master node (default: false)
          :arg preference: Specify the node or shard the operation should be
              performed on (default: random)
          :arg routing: Specific routing value