def search(self, using: Optional[UsingType] = None) -> Search:
        """
        Return a :class:`~elasticsearch.dsl.Search` object searching over the
        index (or all the indices belonging to this template) and its
        ``Document``\\s.
        """
        return Search(
            using=using or self._using, index=self._name, doc_type=self._doc_types
        )

        Return a :class:`~elasticsearch.dsl.Search` object searching over the
        index (or all the indices belonging to this template) and its
        ``Document``\s.
        
elasticsearch/dsl/_sync/index.py