Filing Year + Match Exact Phrase

https://www.lawinsider.com/search?q=%22CONSULTING+AGREEMENT%22&filing_year:max=2023&filing_year:min=2020

curl -X POST "https://www.lawinsider.com/api/v1alpha/search?token=xxx&pretty" -H 'Content-Type: application/json' -d'{
    "query": {
        "bool": {
            "must": [
                {
                    "bool": {
                        "filter": [
                            {
                                "multi_match": {
                                    "fields": [
                                        "name",
                                        "snippet",
                                        "body",
                                        "company.name^0",
                                        "jurisdiction.name^0"
                                    ],
                                    "query": "CONSULTING AGREEMENT",
                                    "slop": 0,
                                    "type": "phrase"
                                }
                            }
                        ],
                        "must": [
                            {
                                "simple_query_string": {
                                    "default_operator": "or",
                                    "fields": [
                                        "name",
                                        "snippet",
                                        "body",
                                        "company.name^0",
                                        "jurisdiction.name^0"
                                    ],
                                    "flags": "AND|OR|NOT|PHRASE|PRECEDENCE|ESCAPE|WHITESPACE|SLOP|FUZZY|PREFIX",
                                    "lenient": true,
                                    "minimum_should_match": "-1",
                                    "query": "\"CONSULTING AGREEMENT\""
                                }
                            }
                        ],
                        "must_not": [],
                        "should": [
                            {
                                "rank_feature": {
                                    "boost": 50,
                                    "field": "weight_rank",
                                    "saturation": {
                                        "pivot": 16
                                    }
                                }
                            },
                            {
                                "multi_match": {
                                    "fields": [
                                        "name^0.05"
                                    ],
                                    "query": "\"CONSULTING AGREEMENT\"",
                                    "type": "phrase_prefix"
                                }
                            },
                            {
                                "match_phrase": {
                                    "name": {
                                        "query": "\"CONSULTING AGREEMENT\""
                                    }
                                }
                            },
                            {
                                "term": {
                                    "name.raw": {
                                        "boost": 100,
                                        "case_insensitive": true,
                                        "value": "\"CONSULTING AGREEMENT\""
                                    }
                                }
                            },
                            {
                                "simple_query_string": {
                                    "default_operator": "and",
                                    "fields": [
                                        "name",
                                        "snippet",
                                        "body",
                                        "company.name^0",
                                        "jurisdiction.name^0"
                                    ],
                                    "flags": "AND|OR|NOT|PHRASE|PRECEDENCE|ESCAPE|WHITESPACE|SLOP|FUZZY|PREFIX",
                                    "lenient": true,
                                    "minimum_should_match": "-1",
                                    "query": "\"CONSULTING AGREEMENT\""
                                }
                            }
                        ]
                    }
                },
                {
                    "bool": {
                        "filter": [
                            {
                                "range": {
                                    "filing_year": {
                                        "gte": 2020,
                                        "lte": 2023
                                    }
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "size": 1,
    "profile": false,
    "explain": false,
    "timeout": "15000ms",
    "_source": [
        "name",
        "snippet",
        "category.name",
        "category.value",
        "company.name",
        "company.value",
        "jurisdiction.name",
        "jurisdiction.value",
        "industry.name",
        "industry.value",
        "filing_date",
        "group_id",
        "group_size"
    ],
    "highlight": {
        "fields": {
            "body": {},
            "company.name": {},
            "jurisdiction.name": {}
        },
        "order": "score",
        "post_tags": [
            "</b>"
        ],
        "pre_tags": [
            "<b>"
        ]
    },
    "suggest": {
        "suggestions": {
            "term": {
                "field": "name",
                "size": 1
            }
        },
        "text": "\"CONSULTING AGREEMENT\""
    }
}'


Responds:

{
  "took" : 839,
  "timed_out" : false,
  "_shards" : {
    "total" : 42,
    "successful" : 42,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 4646,
      "relation" : "eq"
    },
    "max_score" : 67.84231,
    "hits" : [
      {
        "_index" : "contract",
        "_type" : "_doc",
        "_id" : "en/4UoFCYWG1SI",
        "_score" : 67.84231,
        "_source" : {
          "snippet" : "Consulting Agreement (“Consulting Agreement”) dated as of February 16, 2021, by and between Vornado Realty Trust and Vornado Realty L.P. (together, “Vornado”) and David R. Greenbaum (“Consultant”).",
          "group_size" : 2,
          "group_id" : "2hvB4Pf3FZr",
          "filing_date" : "2021-02-16",
          "jurisdiction" : {
            "name" : "New York",
            "value" : "new-york-us"
          },
          "name" : "CONSULTING AGREEMENT",
          "industry" : {
            "name" : "Real estate investment trusts",
            "value" : "real-estate-investment-trusts"
          },
          "company" : {
            "name" : "Vornado Realty Lp",
            "value" : "1040765"
          },
          "category" : {
            "name" : "Consulting Agreement",
            "value" : "consulting-agreement"
          }
        },
        "highlight" : {
          "body" : [
            "EXHIBIT 10.38\n\n<b>CONSULTING</b> <b>AGREEMENT</b>\n\n<b>Consulting</b> <b>Agreement</b> (“<b>Consulting</b> <b>Agreement</b>”) dated as of February",
            "This Section 6 shall survive the termination of the Term and this <b>Consulting</b> <b>Agreement</b>.\n\n7.",
            "The term of this <b>Consulting</b> <b>Agreement</b> shall commence on January 1, 2021 and continue until December 31",
            "Unless otherwise provided, any notice required or permitted under this <b>Consulting</b> <b>Agreement</b> shall be",
            "This <b>Consulting</b> <b>Agreement</b> is intended to comply with the requirements of Section 409A of the Internal"
          ]
        }
      }
    ]
  },
  "suggest" : {
    "suggestions" : [
      {
        "text" : "consulting",
        "offset" : 1,
        "length" : 10,
        "options" : [ ]
      },
      {
        "text" : "agreement",
        "offset" : 12,
        "length" : 9,
        "options" : [ ]
      }
    ]
  }
}