def params()

in nested/workload.py [0:0]


    def params(self):
        result = {
            "body": {
                "query": {
                    "match": {
                        "tag": "%s" % random.choice(self.tags)
                    }
                },
                "sort": [
                    {
                        "answers.date": {
                            "mode": "max",
                            "order": "desc",
                            "nested": {
                                "path": "answers"
                            }
                        }
                    }
                ]
            },
            "index": None
        }
        if "cache" in self._params:
            result["cache"] = self._params["cache"]

        return result