# Functions

CapitalizeFirstLetter is a helper function that transforms the first letter of a string to uppercase.
DateFromTime extracts a date from a time object.
GetCategories returns all the categories and its content types where all the count is set to zero.
GetDataAggregationQuery gets the query that needs to be passed to the search-api to get data aggregation results.
No description provided by the author
No description provided by the author
GetFirstAndLastPages gets the first and last pages.
GetGroupLocaliseKey gets the localise key of the group type of the search result to be displayed.
GetPagesToDisplay gets all the pages available for the search results.
No description provided by the author
GetSearchAPIQuery gets the query that needs to be passed to the search-api to get search results.
GetStartDate returns the validated date from parameters.
GetTopicCategories returns the topic filters to be displayed on the search page.
GetTotalPages gets the total pages of the search results.
IsCategoryUnused returns if a category is unused.
MustParseDate checks if the date format is correct and parsable.
No description provided by the author
ParseDate parses the date into the default DateFormat.
ReviewDataAggregationQueryWithParams ensures that all search parameter values given by the user are reviewed.
ReviewQuery ensures that all search parameter values given by the user are reviewed.
ReviewQuery ensures that all search parameter values given by the user are reviewed.
ValidateDateRange returns an error and 'to' date if the 'from' date is after than the 'to' date.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Article
Article - Search information specific for articles.
Bulletin - Search information specific for statistical bulletins.
Categories represent the list of all search categories.
Compendium - Search information specific for compendium.
CorporateInformation - Search information specific for corporate information.
Data - search information on data category.
No description provided by the author
Datasets - Search information specific for datasets.
No description provided by the author
LimitOptions contains all available limit parameter values.
Methodology - Search information specific for methodologies.
Other - search information on other categories.
ProductPage - Search information specific for product pages.
Publication - search information on publication category.
ReleaseDate - informing on sorting based on release date.
Relevance - informing on sorting based on relevance.
SortOptions represent the list of all search sort options.
TimeSeries - Search information specific for time series.
Title - informing on sorting based on title.
UnusedCategories - these categories are served from the Search API but we don't use them for filters.
UserRequestedData - Search information specific for user requested data.

# Structs

Category represents all the search categories in search page.
ContentType represents the type of the search results and the number of results for each type.
No description provided by the author
No description provided by the author
Filter represents information of filters selected by user.
No description provided by the author
SearchURLParams is a struct which contains all information of search url parameters and values.
Sort represents information of a particular sort option.
Subtopic represents a subtopic filter on the search page.
Topic represents a topic filter on the search page.