Dimensions API - Complex search queries return 'DSL to dataframe magic methods work only with search
queries.' issues when applying dsl.query()
#70
Labels
question
Further information is requested
Documentation link: https://api-lab.dimensions.ai/cookbooks/1-getting-started/3-Working-with-dataframes.html#The-Dimcli-Python-library:-Working-with-Pandas-Dataframes
Using complex search queries yields the 'DSL to dataframe magic methods work only with
search
queries' error despite being applied to a stored search query. An example can be found below:%%dsldf
query = """search publications
where
(
(research_orgs.id = "grid.######.1" and research_orgs.id = "grid.######.6")
)
and (
year = 2020
or year = 2021
)
return [id+authors+year+research_orgs]"""
res = dsl.query(query)
Adjustments have been made to query fields, but do not yield any fixes. Is it possible that this method only works on term searching?
The text was updated successfully, but these errors were encountered: