def elasticsearch_descending_module_querry(module_name):
    """
    Return query to search for specific module in descending order in elasticsearch based on module name
    """
    return {
        "query": {
            "bool": {
                "must": [{
                    "match_phrase": {
                        "module.keyword": {
                            "query": module_name
                        }
                    }
                }]
            }
        },
        "sort": [
            {"revision": {"order": "desc"}}
        ]
    }