-
-
Save imrimt/4bae846b627201de8dd0acf20f545cb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X GET "localhost:9200/_search?" -H 'Content-Type: application/json' -d' | |
{ | |
"from": 0, | |
"size": 50, | |
"profile": true, | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"bool": { | |
"must": [ | |
{ | |
"has_child": { | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"function_score": { | |
"query": { | |
"match_all": { | |
"boost": 1.0 | |
} | |
}, | |
"functions": [ | |
{ | |
"filter": { | |
"match_all": { | |
"boost": 1.0 | |
} | |
}, | |
"field_value_factor": { | |
"field": "cluster.idHash", | |
"factor": 1.0, | |
"missing": 0.0, | |
"modifier": "none" | |
} | |
} | |
], | |
"score_mode": "multiply", | |
"boost_mode": "replace", | |
"max_boost": 3.4028235E+38, | |
"boost": 1.0 | |
} | |
} | |
], | |
"filter": [ | |
{ | |
"bool": { | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"bool": { | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"bool": { | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"match_all": { | |
"boost": 1.0 | |
} | |
} | |
], | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
"type": "dataset_metadata_id_17", | |
"score_mode": "max", | |
"min_children": 0, | |
"max_children": 2147483647, | |
"ignore_unmapped": false, | |
"boost": 1.0, | |
"inner_hits": { | |
"name": "inner_hit_dataset_metadata", | |
"ignore_unmapped": false, | |
"from": 0, | |
"size": 3, | |
"version": false, | |
"explain": false, | |
"track_scores": false | |
} | |
} | |
} | |
], | |
"filter": [ | |
{ | |
"terms": { | |
"tamr_es_document_type_field": [ | |
"dataset_id_17" | |
], | |
"boost": 1.0 | |
} | |
} | |
], | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"bool": { | |
"must": [ | |
{ | |
"function_score": { | |
"query": { | |
"match_all": { | |
"boost": 1.0 | |
} | |
}, | |
"functions": [ | |
{ | |
"filter": { | |
"match_all": { | |
"boost": 1.0 | |
} | |
}, | |
"field_value_factor": { | |
"field": "publishedCluster.idHash", | |
"factor": 1.0, | |
"missing": 0.0, | |
"modifier": "none" | |
} | |
} | |
], | |
"score_mode": "multiply", | |
"boost_mode": "replace", | |
"max_boost": 3.4028235E+38, | |
"boost": 1.0 | |
} | |
} | |
], | |
"filter": [ | |
{ | |
"bool": { | |
"must": [ | |
{ | |
"function_score": { | |
"query": { | |
"match_all": { | |
"boost": 1.0 | |
} | |
}, | |
"functions": [ | |
{ | |
"filter": { | |
"match_all": { | |
"boost": 1.0 | |
} | |
}, | |
"field_value_factor": { | |
"field": "cluster.idHash", | |
"factor": 1.0, | |
"missing": 0.0, | |
"modifier": "none" | |
} | |
} | |
], | |
"score_mode": "multiply", | |
"boost_mode": "replace", | |
"max_boost": 3.4028235E+38, | |
"boost": 1.0 | |
} | |
} | |
], | |
"filter": [ | |
{ | |
"bool": { | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"bool": { | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"bool": { | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"match_all": { | |
"boost": 1.0 | |
} | |
} | |
], | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
{ | |
"term": { | |
"changeStatus": { | |
"value": "DELETED_RECORD", | |
"boost": 1.0 | |
} | |
} | |
}, | |
{ | |
"bool": { | |
"filter": [ | |
{ | |
"terms": { | |
"tamr_es_document_type_field": [ | |
"dataset_metadata_id_17" | |
], | |
"boost": 1.0 | |
} | |
} | |
], | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
} | |
], | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
} | |
], | |
"adjust_pure_negative": true, | |
"boost": 1.0 | |
} | |
}, | |
"_source": { | |
"includes": [ | |
"*" | |
], | |
"excludes": [] | |
}, | |
"sort": [ | |
{ | |
"_score": { | |
"order": "desc" | |
} | |
}, | |
{ | |
"tamr__tamr_id.raw": { | |
"order": "asc", | |
"missing": "_last" | |
} | |
} | |
], | |
"highlight": { | |
"pre_tags": [ | |
"<span class=\"search-highlight\">" | |
], | |
"post_tags": [ | |
"</span>" | |
], | |
"number_of_fragments": 0, | |
"type": "plain", | |
"encoder": "html", | |
"fields": { | |
"tamr__*": {} | |
} | |
} | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment