elastic_enterprise_search/_async/client/workplace_search.py [736:766]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        current_page: t.Optional[int] = None,
        filter: t.Optional[t.Mapping[str, t.Any]] = None,
        page_size: t.Optional[int] = None,
        sort: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Retrieve a list of synonym sets

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-synonyms-api.html#list-synonyms>`_

        :param current_page:
        :param filter:
        :param page_size:
        :param sort:
        """
        __body: t.Dict[str, t.Any] = {}
        if current_page is not None:
            __body.setdefault("page", {})
            __body["page"]["current"] = current_page
        if filter is not None:
            __body["filter"] = filter
        if page_size is not None:
            __body.setdefault("page", {})
            __body["page"]["size"] = page_size
        if sort is not None:
            __body["sort"] = sort
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/workplace_search.py [736:766]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        current_page: t.Optional[int] = None,
        filter: t.Optional[t.Mapping[str, t.Any]] = None,
        page_size: t.Optional[int] = None,
        sort: t.Optional[t.Mapping[str, t.Any]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Retrieve a list of synonym sets

        `<https://www.elastic.co/guide/en/workplace-search/current/workplace-synonyms-api.html#list-synonyms>`_

        :param current_page:
        :param filter:
        :param page_size:
        :param sort:
        """
        __body: t.Dict[str, t.Any] = {}
        if current_page is not None:
            __body.setdefault("page", {})
            __body["page"]["current"] = current_page
        if filter is not None:
            __body["filter"] = filter
        if page_size is not None:
            __body.setdefault("page", {})
            __body["page"]["size"] = page_size
        if sort is not None:
            __body["sort"] = sort
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



