def search(
        cls, using: Optional[UsingType] = None, index: Optional[str] = None
    ) -> Search[Self]:
        """
        Create an :class:`~elasticsearch.dsl.Search` instance that will search
        over this ``Document``.
        """
        return Search(
            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/_sync/document.py