elastic_enterprise_search/_async/client/app_search.py [404:438]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        engine_name: str,
        document_id: str,
        query: str,
        request_id: t.Optional[str] = None,
        tags: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Tracks results that were clicked after a query

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

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



elastic_enterprise_search/_sync/client/app_search.py [404:438]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        *,
        engine_name: str,
        document_id: str,
        query: str,
        request_id: t.Optional[str] = None,
        tags: t.Optional[t.Union[t.List[str], t.Tuple[str, ...]]] = None,
    ) -> ObjectApiResponse[t.Any]:
        """
        Tracks results that were clicked after a query

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

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



