<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_partitioned_search_result(self, partition_key, ddoc_id, index_name, **query_params):
 """ Retrieves the raw JSON content from the remote database based on the partitioned search index on the server, using the query_params provided as query parameters. See :func:`~cloudant.database.CouchDatabase.get_search_result` method for further details. :param str partition_key: Partition key. :param str ddoc_id: Design document id used to get the search result. :param str index_name: Name used in part to identify the index. :param query_params: See :func:`~cloudant.database.CloudantDatabase.get_search_result` method for available keyword arguments. :returns: Search query result data in JSON format. :rtype: dict """

        ddoc = DesignDocument(self, ddoc_id)

        return self._get_search_result(
            '/'.join((
                ddoc.document_partition_url(partition_key),
                '_search',
                index_name
            )),
            **query_params
        )