Dictionary
https://www.lawinsider.com/search?_index=definition
A dictionary is a subset of clauses that define terms (so the dictionary contains definitions). See dictionary.
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": "definition"
}
},
"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" : 414,
"timed_out" : false,
"_shards" : {
"total" : 42,
"successful" : 42,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 10000,
"relation" : "gte"
},
"max_score" : 45.444447,
"hits" : [
{
"_index" : "definition",
"_type" : "_doc",
"_id" : "en/transferred-property",
"_score" : 45.444447,
"_source" : {
"snippet" : "means the Initial Transferred Property and the Subsequent Transferred Property, collectively.",
"group_id" : "transferred-property",
"name" : "Transferred Property"
}
}
]
}
}
Updated over 1 year ago