Logo de Go Africa Online

GET
https://www.goa.goafrica.syazen.cloud/pros?page=249

Response:
200
IP:
216.73.216.165
Date:
November 15th, 2026 at 4:23:39 AM
Total execution time:
2,594 ms
Token:
s5zKZoT8Sm_RUNR5hsYo

Elastic queries

Time Request
1,189 ms
Path : /goafrica_search_engine/_search
Method : POST
{
    "track_total_hits": true,
    "size": 0,
    "aggs": {
        "maxFeedPostsPerUser": {
            "max": {
                "field": "user_count_feed_posts"
            }
        },
        "maxFollowersPerUser": {
            "max": {
                "field": "user_count_followers"
            }
        },
        "oldestRegistrationDateUnix": {
            "min": {
                "field": "user_registration_date"
            }
        },
        "maxConnectionsPerUser": {
            "max": {
                "field": "user_count_connections"
            }
        },
        "maxReactionsReceivedPerUser": {
            "max": {
                "field": "user_count_reactions_received"
            }
        },
        "maxReactionsMadePerUser": {
            "max": {
                "field": "user_count_reactions_made"
            }
        }
    }
}
2,440 ms
Path : /goafrica_search_engine/_search
Method : POST
{
    "query": {
        "script_score": {
            "script": {
                "source": "     \n                              double compositeScore = 0.0;\n                              if(params['maxConnectionsPerUser'] != null && params['maxConnectionsPerUser'] > 0 && params['oldestRegistrationDateUnix'] != null) {\n                                    ZonedDateTime today = ZonedDateTime.parse(params['now']);\n                                    ZonedDateTime memberSince = !doc['user_registration_date'].empty ? (doc['user_registration_date'].value) : today;\n                                    Instant instant = Instant.ofEpochMilli(params['oldestRegistrationDateUnix']);\n                                    ZonedDateTime oldestRegistrationDate = ZonedDateTime.ofInstant(instant, ZoneId.of('Z'));\n                                    long daysRegistered = ChronoUnit.DAYS.between(memberSince,today);\n                                    long maxDaysRegistered = ChronoUnit.DAYS.between(oldestRegistrationDate,today);\n                                    long connectionsThisMonth = doc['user_count_connections'].value;\n                                    compositeScore = compositeScore + daysRegistered*1.0 / maxDaysRegistered * connectionsThisMonth / params['maxConnectionsPerUser'] * params['weights_seniorityAndPresence'];\n                              }\n\n                              compositeScore = compositeScore\n                                + ((doc['user_has_experiences'].value) ? params['weights_hasExperiences'] : 0)\n                                + ((doc['user_has_formations'].value) ? params['weights_hasFormations'] : 0)\n                                + ((doc['user_has_resume'].value) ? params['weights_hasResume'] : 0)\n                                + ((!doc['user_category.id'].empty) ? params['weights_hasCategory'] : 0.0)\n                                + ((!doc['user_profile_title.raw'].empty) ? params['weights_hasTitle'] : 0.0)\n                                + ((!doc['user_profile_description.raw'].empty) ? params['weights_hasShortDesc'] : 0.0)\n                                + ((!doc['user_education_level'].empty) ? params['weights_hasEducationLevel'] : 0.0)\n                                + ((doc['user_profile_photo_status_valid'].value) ? params['weights_hasProfilePhoto'] : 0.0)\n                                + ((doc['user_count_languages'].value > 0) ? params['weights_hasLanguages'] : 0.0);\n                                \n                                if(params['maxFollowersPerUser'] != null && params['maxFollowersPerUser'] > 0) {\n                                    compositeScore += (params['weights_followersCount'] * (doc['user_count_followers'].value) * 1.0 / params['maxFollowersPerUser'])\n                                }\n                                if(params['maxFeedPostsPerUser'] != null && params['maxFeedPostsPerUser'] > 0) {\n                                    compositeScore += (params['weights_feedPostsCount'] * (doc['user_count_feed_posts'].value) * 1.0 / params['maxFeedPostsPerUser'])\n                                }\n                                if(params['maxReactionsReceivedPerUser'] != null && params['maxReactionsReceivedPerUser'] > 0) {\n                                    compositeScore += (params['weights_reactionsReceivedCount'] * (doc['user_count_reactions_received'].value) * 1.0 / params['maxReactionsReceivedPerUser'])\n                                }\n                                if(params['maxReactionsMadePerUser'] != null && params['maxReactionsMadePerUser'] > 0) {\n                                    compositeScore += (params['weights_reactionsMadeCount'] * (doc['user_count_reactions_made'].value) * 1.0 / params['maxReactionsMadePerUser'])\n                                }\n                                return Math.floor(_score * 100) + compositeScore / 100\n                      ",
                "params": {
                    "now": "2026-11-15T03:23:39.258Z",
                    "maxFeedPostsPerUser": 2626,
                    "maxFollowersPerUser": 2743,
                    "oldestRegistrationDateUnix": 1557997785000,
                    "maxConnectionsPerUser": 3390,
                    "maxReactionsReceivedPerUser": 3175,
                    "maxReactionsMadePerUser": 6862,
                    "weights_seniorityAndPresence": 10,
                    "weights_hasTitle": 10,
                    "weights_hasShortDesc": 5,
                    "weights_hasCategory": 3,
                    "weights_hasExperiences": 5,
                    "weights_hasFormations": 5,
                    "weights_hasEducationLevel": 4,
                    "weights_hasResume": 3,
                    "weights_hasVideo": 10,
                    "weights_hasProfilePhoto": 15,
                    "weights_hasLanguages": 5,
                    "weights_followersCount": 10,
                    "weights_feedPostsCount": 5,
                    "weights_reactionsMadeCount": 5,
                    "weights_reactionsReceivedCount": 5
                }
            },
            "query": {
                "bool": {
                    "must": [],
                    "filter": {
                        "bool": {
                            "must": [
                                {
                                    "term": {
                                        "_type": "user"
                                    }
                                },
                                {
                                    "exists": {
                                        "field": "user_fullname"
                                    }
                                },
                                {
                                    "exists": {
                                        "field": "user_count_connections"
                                    }
                                },
                                {
                                    "bool": {
                                        "must_not": [
                                            {
                                                "term": {
                                                    "user_fullname": ""
                                                }
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        }
    },
    "track_total_hits": 109970,
    "size": 30,
    "from": 7440
}
N/A
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": "2026-11-15T03:23:40.438Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2026-11-15T03:23:40.438Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "do",
                                                        "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
}
N/A
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": "2026-11-15T03:23:40.441Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2026-11-15T03:23:40.441Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "do",
                                                        "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
}
1 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": "2026-11-15T03:23:40.443Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2026-11-15T03:23:40.443Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "do",
                                                        "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
}
2 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": "2026-11-15T03:23:40.444Z"
                                                    }
                                                }
                                            },
                                            {
                                                "range": {
                                                    "end_date": {
                                                        "gte": "2026-11-15T03:23:40.444Z"
                                                    }
                                                }
                                            }
                                        ]
                                    }
                                },
                                {
                                    "bool": {
                                        "minimum_should_match": 1,
                                        "should": [
                                            {
                                                "term": {
                                                    "country": {
                                                        "value": "do",
                                                        "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
}