elastic_enterprise_search/_async/client/workplace_search.py [894:969]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        automatic_query_refinement: t.Optional[bool] = None,
        boosts: t.Optional[t.Mapping[str, t.Any]] = None,
        content_sources: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
        current_page: t.Optional[int] = None,
        facets: t.Optional[t.Mapping[str, t.Any]] = None,
        filters: t.Optional[t.Union[t.Any, t.Mapping[str, t.Any]]] = None,
        page_size: t.Optional[int] = None,
        query: t.Optional[str] = None,
        result_fields: t.Optional[t.Mapping[str, t.Any]] = None,
        search_fields: t.Optional[t.Mapping[str, t.Any]] = None,
        sort: t.Optional[
            t.Union[
                t.Mapping[str, t.Any],
                t.Union[
                    t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
                ],
            ]
        ] = None,
        source_type: t.Optional[
            t.Union["t.Literal['all', 'remote', 'standard']", str]
        ] = None,
        timeout: t.Optional[int] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Issue a Search Query

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

        :param automatic_query_refinement:
        :param boosts:
        :param content_sources:
        :param current_page:
        :param facets:
        :param filters:
        :param page_size:
        :param query:
        :param result_fields:
        :param search_fields:
        :param sort:
        :param source_type:
        :param timeout:
        """
        __body: t.Dict[str, t.Any] = {}
        if automatic_query_refinement is not None:
            __body["automatic_query_refinement"] = automatic_query_refinement
        if boosts is not None:
            __body["boosts"] = boosts
        if content_sources is not None:
            __body["content_sources"] = content_sources
        if current_page is not None:
            __body.setdefault("page", {})
            __body["page"]["current"] = current_page
        if facets is not None:
            __body["facets"] = facets
        if filters is not None:
            __body["filters"] = filters
        if page_size is not None:
            __body.setdefault("page", {})
            __body["page"]["size"] = page_size
        if query is not None:
            __body["query"] = query
        if result_fields is not None:
            __body["result_fields"] = result_fields
        if search_fields is not None:
            __body["search_fields"] = search_fields
        if sort is not None:
            __body["sort"] = sort
        if source_type is not None:
            __body["source_type"] = source_type
        if timeout is not None:
            __body["timeout"] = timeout
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elastic_enterprise_search/_sync/client/workplace_search.py [894:969]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        automatic_query_refinement: t.Optional[bool] = None,
        boosts: t.Optional[t.Mapping[str, t.Any]] = None,
        content_sources: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
        current_page: t.Optional[int] = None,
        facets: t.Optional[t.Mapping[str, t.Any]] = None,
        filters: t.Optional[t.Union[t.Any, t.Mapping[str, t.Any]]] = None,
        page_size: t.Optional[int] = None,
        query: t.Optional[str] = None,
        result_fields: t.Optional[t.Mapping[str, t.Any]] = None,
        search_fields: t.Optional[t.Mapping[str, t.Any]] = None,
        sort: t.Optional[
            t.Union[
                t.Mapping[str, t.Any],
                t.Union[
                    t.List[t.Mapping[str, t.Any]], t.Tuple[t.Mapping[str, t.Any], ...]
                ],
            ]
        ] = None,
        source_type: t.Optional[
            t.Union["t.Literal['all', 'remote', 'standard']", str]
        ] = None,
        timeout: t.Optional[int] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Issue a Search Query

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

        :param automatic_query_refinement:
        :param boosts:
        :param content_sources:
        :param current_page:
        :param facets:
        :param filters:
        :param page_size:
        :param query:
        :param result_fields:
        :param search_fields:
        :param sort:
        :param source_type:
        :param timeout:
        """
        __body: t.Dict[str, t.Any] = {}
        if automatic_query_refinement is not None:
            __body["automatic_query_refinement"] = automatic_query_refinement
        if boosts is not None:
            __body["boosts"] = boosts
        if content_sources is not None:
            __body["content_sources"] = content_sources
        if current_page is not None:
            __body.setdefault("page", {})
            __body["page"]["current"] = current_page
        if facets is not None:
            __body["facets"] = facets
        if filters is not None:
            __body["filters"] = filters
        if page_size is not None:
            __body.setdefault("page", {})
            __body["page"]["size"] = page_size
        if query is not None:
            __body["query"] = query
        if result_fields is not None:
            __body["result_fields"] = result_fields
        if search_fields is not None:
            __body["search_fields"] = search_fields
        if sort is not None:
            __body["sort"] = sort
        if source_type is not None:
            __body["source_type"] = source_type
        if timeout is not None:
            __body["timeout"] = timeout
        __headers = {"accept": "application/json"}
        if __body is not None:
            __headers["content-type"] = "application/json"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



