Countries
https://www.lawinsider.com/search?_index=country
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": "country"
}
},
"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" : 239,
"timed_out" : false,
"_shards" : {
"total" : 42,
"successful" : 42,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 165,
"relation" : "eq"
},
"max_score" : 45.444447,
"hits" : [
{
"_index" : "country",
"_type" : "_doc",
"_id" : "en/south-africa",
"_score" : 45.444447,
"_source" : {
"group_id" : "south-africa",
"name" : "South Africa"
}
}
]
}
}
Updated over 1 year ago