Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -X POST \
- https://schoolsearch-api.qa.collegeconfidential.com/suggest/_search \
- -H 'Accept: */*' \
- -H 'Accept-Encoding: gzip, deflate' \
- -H 'Cache-Control: no-cache' \
- -H 'Connection: keep-alive' \
- -H 'Content-Length: 736' \
- -H 'Content-Type: application/json' \
- -H 'Host: schoolsearch-api.qa.collegeconfidential.com' \
- -H 'Postman-Token: 23b5c67a-a22a-4016-aee2-6f8cbc42261b,ee85990d-5abd-4352-8573-cd1c5366557d' \
- -H 'User-Agent: PostmanRuntime/7.18.0' \
- -H 'cache-control: no-cache' \
- -d '{
- "size": 20,
- "sort": [
- "_score"
- ],
- "query": {
- "function_score": {
- "query": {
- "match_phrase": {
- "text": "arabic language"
- }
- },
- "functions": [
- {
- "field_value_factor": {
- "field": "weight",
- "factor": 1.2,
- "missing": 1
- }
- },
- {
- "script_score": {
- "script": "doc['\''_type'\''].value == '\''state'\'' || doc['\''_type'\''].value == '\''major'\'' ? _score * 10000 : _score"
- }
- }
- ]
- }
- }
- }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement