{
"query": {
"function_score": {
"bool": {
"minimum_should_match": 1,
"should": [],
"filter": {
"must": [
"match": {
"parent.country_a": {
"analyzer": "standard",
"query": "ABC"
}
},
"terms": {
"layer": [
"test"
]
"max_boost": 20,
"functions": [
"field_value_factor": {
"modifier": "log1p",
"field": "popularity",
"missing": 1
"weight": 1
"field": "population",
"weight": 2
],
"score_mode": "avg",
"boost_mode": "multiply"
"sort": [
"_score"
"size": 10,
"track_scores": true