elastic_enterprise_search/_async/client/app_search.py [2226:2254]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        engine_name: str,
        query: t.Optional[str] = None,
        size: t.Optional[int] = None,
        types: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Provide relevant query suggestions for incomplete queries

        `<https://www.elastic.co/guide/en/app-search/current/query-suggestion.html>`_

        :param engine_name: Name of the engine
        :param query:
        :param size:
        :param types:
        """
        if engine_name in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'engine_name'")
        __body: t.Dict[str, t.Any] = {}
        if query is not None:
            __body["query"] = query
        if size is not None:
            __body["size"] = size
        if types is not None:
            __body["types"] = types
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/app_search.py [2226:2254]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        engine_name: str,
        query: t.Optional[str] = None,
        size: t.Optional[int] = None,
        types: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Provide relevant query suggestions for incomplete queries

        `<https://www.elastic.co/guide/en/app-search/current/query-suggestion.html>`_

        :param engine_name: Name of the engine
        :param query:
        :param size:
        :param types:
        """
        if engine_name in SKIP_IN_PATH:
            raise ValueError("Empty value passed for parameter 'engine_name'")
        __body: t.Dict[str, t.Any] = {}
        if query is not None:
            __body["query"] = query
        if size is not None:
            __body["size"] = size
        if types is not None:
            __body["types"] = types
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



