Jurisdictions

https://www.lawinsider.com/search?_index=jurisdiction

curl -X POST "https://www.lawinsider.com/api/v1alpha/search?token=xxx&pretty" -H 'Content-Type: application/json' -d'{
    "query": {
        "bool": {
            "should": [
                {
                    "match_all": {}
                },
                {
                    "rank_feature": {
                        "boost": 50,
                        "field": "weight_rank",
                        "saturation": {
                            "pivot": 16
                        }
                    }
                }
            ]
        }
    },
    "post_filter": {
        "term": {
            "_index": "jurisdiction"
        }
    },
    "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>"
        ]
    }
}'

Responds:

{
  "took" : 251,
  "timed_out" : false,
  "_shards" : {
    "total" : 42,
    "successful" : 42,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 361,
      "relation" : "eq"
    },
    "max_score" : 45.444447,
    "hits" : [
      {
        "_index" : "jurisdiction",
        "_type" : "_doc",
        "_id" : "en/quebec-ca",
        "_score" : 45.444447,
        "_source" : {
          "group_id" : "quebec-ca",
          "name" : "Quebec"
        }
      }
    ]
  }
}