mozetl.search package¶
Submodules¶
mozetl.search.aggregates module¶
Firefox Desktop Search Count Datasets
This job produces derived datasets that make it easy to explore search count data.
The search_aggregates job is used to populate an executive search dashboard. For more information, see Bug 1381140.
The search_clients_daily job produces a dataset keyed by (client_id, submission_date, search_counts.engine, search_counts.source). This allows for deeper analysis into user level search behavior.
-
mozetl.search.aggregates.
add_derived_columns
(exploded_search_counts)[source]¶ Adds the following columns to the provided dataset:
- type: One of ‘in-content-sap’, ‘follow-on’, ‘chrome-sap’,
‘ad-click’ or ‘search-with-ads’.
addon_version: The version of the followon-search@mozilla addon, or None
-
mozetl.search.aggregates.
agg_search_data
(main_summary, grouping_cols, agg_functions)[source]¶ Augment, Explode, and Aggregate search data
The augmented and exploded dataset has the same columns as main_summary with the addition of the following:
- engine: A key in the search_counts field representing a search engine.
e.g. ‘hoolie’
- source: A key in the search_counts field representing a search source
e.g. ‘urlbar’
tagged-sap: Sum of all searches with partner codes from an SAP tagged-follow-on: Sum of all searches with partner codes from a downstream query sap: Sum of all searches originating from a direct user interaction with the Firefox UI addon_version: The version of the followon-search@mozilla.com addon