def search(
        cls, using: Optional[AsyncUsingType] = None, index: Optional[str] = None
    ) -> AsyncSearch[Self]:
        """
        Create an :class:`~elasticsearch.dsl.Search` instance that will search
        over this ``Document``.
        """
        return AsyncSearch(
            using=cls._get_using(using), index=cls._default_index(index), doc_type=[cls]
        )

        Create an :class:`~elasticsearch.dsl.Search` instance that will search
        over this ``Document``.
        
elasticsearch/dsl/_async/document.py