CreateSearchQuery {MacrobondAPI}R Documentation

Create a search query

Description

Create a search query object that can be modified by settings filters and then used with Search to perform a search for entities in the database.

This method is only available if you run Macrobond app 1.23 or later and have a Data Scientist license.

Usage

CreateSearchQuery()

Value

An object of type SearchQuery.

See Also

Search SearchQuery SearchResult SearchByConcept

Examples

# Search for time series, including discontinued, that are seasonally adjusted, belongs to the region us or de and matches the free text 'steel production'
query <- CreateSearchQuery()
setIncludeDiscontinued(query, TRUE)
setEntityTypeFilter(query, "TimeSeries")
setSearchText(query, "steel production")
addAttributeFilter(query, "SeasonAdj")
addAttributeValueFilter(query, "Region", c("us", "de"))
entities <- getEntities(Search(query))

[Package MacrobondAPI version 1.1-5 Index]