Companies
https://www.lawinsider.com/search?_index=company
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": "company"
}
},
"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" : 253,
"timed_out" : false,
"_shards" : {
"total" : 42,
"successful" : 42,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 45.444447,
"hits" : [
{
"_index" : "company",
"_type" : "_doc",
"_id" : "en/1394159",
"_score" : 45.444447,
"_source" : {
"group_id" : "1394159",
"name" : "Orbitz Worldwide, Inc."
}
}
]
}
}
Updated over 1 year ago