Logo de Go Africa Online

GET
https://www.goa.goafrica.syazen.cloud/ug

Response:
200
IP:
216.73.216.18
Date:
4 août 2025 à 14:54:54
Total execution time:
136 ms
Token:
KcPgTaHa6s0ADmgb6zWc

Elastic queries

Time Request
6 ms
Path : /goafrica_ads/_search
Method : POST
{
    "query": {
        "function_score": {
            "query": {
                "bool": {
                    "filter": {
                        "bool": {
                            "must": [
                                {
                                    "term": {
                                        "has_background": true
                                    }
                                },
                                {
                                    "term": {
                                        "enabled": true
                                    }
                                },
                                {
                                    "bool": {
                                        "must": [
                                            {
                                                "range": {
                                                    "start_date": {
                                                        "lte": "2025-08-04T12:54:54.448Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2025-08-04T12:54:54.448Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "ug",
                                                        "case_insensitive": true
                                                    }
                                                }
                                            },
                                            {
                                                "term": {
                                                    "all_countries": true
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "term": {
                                        "background_on_homepage": true
                                    }
                                },
                                {
                                    "script": {
                                        "script": {
                                            "source": "doc['hour_nb_views'].value < (\n               ((((new Date()).getTime() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) <= (((doc['end_date'].value.toInstant().toEpochMilli() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) * 0.80))\n                   ? Math.ceil(((((Math.floor((((new Date()).getTime() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60))) + 1) * ((doc['max_views'].value * 0.90) / (((doc['end_date'].value.toInstant().toEpochMilli() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) * 0.80))) - doc['nb_views'].value) <= 0 ? 0 : (((Math.floor((((new Date()).getTime() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60))) + 1) * ((doc['max_views'].value * 0.90) / (((doc['end_date'].value.toInstant().toEpochMilli() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) * 0.80))) - doc['nb_views'].value)))\n                   : Math.ceil(((doc['max_views'].value - doc['nb_views'].value) / ((doc['end_date'].value.toInstant().toEpochMilli() - (new Date()).getTime()) / (1000 * 60 * 60))))\n           )"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "functions": [
                {
                    "script_score": {
                        "script": {
                            "source": "(doc['max_views'].value - doc['nb_views'].value) / (doc['end_date'].value.toInstant().toEpochMilli() - (new Date().getTime()))"
                        }
                    }
                },
                {
                    "field_value_factor": {
                        "field": "weight"
                    }
                },
                {
                    "random_score": {}
                }
            ]
        }
    },
    "size": 1,
    "from": 0
}
11 ms
Path : /goafrica_ads/_search
Method : POST
{
    "query": {
        "function_score": {
            "query": {
                "bool": {
                    "filter": {
                        "bool": {
                            "must": [
                                {
                                    "term": {
                                        "has_background": true
                                    }
                                },
                                {
                                    "term": {
                                        "enabled": true
                                    }
                                },
                                {
                                    "bool": {
                                        "must": [
                                            {
                                                "range": {
                                                    "start_date": {
                                                        "lte": "2025-08-04T12:54:54.455Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2025-08-04T12:54:54.455Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "ug",
                                                        "case_insensitive": true
                                                    }
                                                }
                                            },
                                            {
                                                "term": {
                                                    "all_countries": true
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "term": {
                                        "background_on_homepage": true
                                    }
                                },
                                {
                                    "script": {
                                        "script": {
                                            "source": "doc['hour_nb_views'].value < (\n               ((((new Date()).getTime() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) <= (((doc['end_date'].value.toInstant().toEpochMilli() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) * 0.80))\n                   ? Math.ceil(((((Math.floor((((new Date()).getTime() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60))) + 1) * ((doc['max_views'].value * 0.90) / (((doc['end_date'].value.toInstant().toEpochMilli() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) * 0.80))) - doc['nb_views'].value) <= 0 ? 0 : (((Math.floor((((new Date()).getTime() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60))) + 1) * ((doc['max_views'].value * 0.90) / (((doc['end_date'].value.toInstant().toEpochMilli() - doc['start_date'].value.toInstant().toEpochMilli()) / (1000 * 60 * 60)) * 0.80))) - doc['nb_views'].value)))\n                   : Math.ceil(((doc['max_views'].value - doc['nb_views'].value) / ((doc['end_date'].value.toInstant().toEpochMilli() - (new Date()).getTime()) / (1000 * 60 * 60))))\n           )"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "functions": [
                {
                    "script_score": {
                        "script": {
                            "source": "(doc['max_views'].value - doc['nb_views'].value) / (doc['end_date'].value.toInstant().toEpochMilli() - (new Date().getTime()))"
                        }
                    }
                },
                {
                    "field_value_factor": {
                        "field": "weight"
                    }
                },
                {
                    "random_score": {}
                }
            ]
        }
    },
    "size": 1,
    "from": 0
}
9 ms
Path : /goafrica_ads/_search
Method : POST
{
    "query": {
        "function_score": {
            "query": {
                "bool": {
                    "filter": {
                        "bool": {
                            "must": [
                                {
                                    "term": {
                                        "has_background": true
                                    }
                                },
                                {
                                    "term": {
                                        "enabled": true
                                    }
                                },
                                {
                                    "bool": {
                                        "must": [
                                            {
                                                "range": {
                                                    "start_date": {
                                                        "lte": "2025-08-04T12:54:54.466Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2025-08-04T12:54:54.466Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "ug",
                                                        "case_insensitive": true
                                                    }
                                                }
                                            },
                                            {
                                                "term": {
                                                    "all_countries": true
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "term": {
                                        "background_on_homepage": true
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "functions": [
                {
                    "script_score": {
                        "script": {
                            "source": "(doc['max_views'].value - doc['nb_views'].value) / (doc['end_date'].value.toInstant().toEpochMilli() - (new Date().getTime()))"
                        }
                    }
                },
                {
                    "field_value_factor": {
                        "field": "weight"
                    }
                },
                {
                    "random_score": {}
                }
            ]
        }
    },
    "size": 1,
    "from": 0
}
8 ms
Path : /goafrica_ads/_search
Method : POST
{
    "query": {
        "function_score": {
            "query": {
                "bool": {
                    "filter": {
                        "bool": {
                            "must": [
                                {
                                    "term": {
                                        "has_background": true
                                    }
                                },
                                {
                                    "term": {
                                        "enabled": true
                                    }
                                },
                                {
                                    "bool": {
                                        "must": [
                                            {
                                                "range": {
                                                    "start_date": {
                                                        "lte": "2025-08-04T12:54:54.475Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2025-08-04T12:54:54.475Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "ug",
                                                        "case_insensitive": true
                                                    }
                                                }
                                            },
                                            {
                                                "term": {
                                                    "all_countries": true
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "term": {
                                        "background_on_homepage": true
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "functions": [
                {
                    "script_score": {
                        "script": {
                            "source": "(doc['max_views'].value - doc['nb_views'].value) / (doc['end_date'].value.toInstant().toEpochMilli() - (new Date().getTime()))"
                        }
                    }
                },
                {
                    "field_value_factor": {
                        "field": "weight"
                    }
                },
                {
                    "random_score": {}
                }
            ]
        }
    },
    "size": 1,
    "from": 0
}