Example #1
0
        public async Task <VariantReport> GetCustomVariantReportAsync(
            SearchScorerSettings settings,
            string customVariantUrl)
        {
            var topQueries         = TopSearchQueriesCsvReader.Read(settings.TopSearchQueriesCsvPath);
            var topClientQueries   = TopClientSearchQueriesCsvReader.Read(settings.TopClientSearchQueriesCsvPath);
            var topSearchReferrals = GoogleAnalyticsSearchReferralsCsvReader.Read(settings.GoogleAnalyticsSearchReferralsCsvPath);

            return(await GetVariantReport(
                       customVariantUrl,
                       settings,
                       topQueries,
                       topClientQueries,
                       topSearchReferrals));
        }
Example #2
0
        private static void ShowCurationCoverage(SearchScorerSettings settings)
        {
            Console.WriteLine("Search query curation");
            Console.WriteLine("=====================");
            ShowCurationCoverage(
                TopSearchQueriesCsvReader.Read(settings.TopSearchQueriesCsvPath),
                CuratedSearchQueriesCsvReader.Read(settings.CuratedSearchQueriesCsvPath));

            Console.WriteLine();

            Console.WriteLine("Client search query curation");
            Console.WriteLine("============================");
            ShowCurationCoverage(
                TopClientSearchQueriesCsvReader.Read(settings.TopClientSearchQueriesCsvPath),
                CuratedSearchQueriesCsvReader.Read(
                    settings.ClientCuratedSearchQueriesCsvPath,
                    settings.CuratedSearchQueriesCsvPath));
        }
Example #3
0
        private async Task <RelevancyReport> GetReportAsync(SearchScorerSettings settings)
        {
            var topQueries         = TopSearchQueriesCsvReader.Read(settings.TopSearchQueriesCsvPath);
            var topClientQueries   = TopClientSearchQueriesCsvReader.Read(settings.TopClientSearchQueriesCsvPath);
            var topSearchReferrals = GoogleAnalyticsSearchReferralsCsvReader.Read(settings.GoogleAnalyticsSearchReferralsCsvPath);

            var controlReport = await GetVariantReport(
                settings.ControlBaseUrl,
                settings,
                topQueries,
                topClientQueries,
                topSearchReferrals);

            var treatmentReport = await GetVariantReport(
                settings.TreatmentBaseUrl,
                settings,
                topQueries,
                topClientQueries,
                topSearchReferrals);

            return(new RelevancyReport(
                       controlReport,
                       treatmentReport));
        }