Public
Edited
Oct 2, 2023
Insert cell
Insert cell
Insert cell
Insert cell
data = post("/es/research-publications/_search", {
size: 1000,
_source: [ "Id", "IdentifierCplPubid" ],
query: {
"bool": {
"should": [
{
term: {
"Persons.Organizations.OrganizationId": "76dad021-96de-42dc-98a1-a3d05ea5f235"
}
},
{
term: {
"Persons.Organizations.OrganizationData.OrganizationParents.ParentOrganizationData.Id.keyword": "76dad021-96de-42dc-98a1-a3d05ea5f235"
}
}
]
}
}
})
Insert cell
ids = data.hits.hits.map(h => [ h._source.Id, ...h._source.IdentifierCplPubid ]).flat()
Insert cell
cplIds = data.hits.hits.map(h => h._source.IdentifierCplPubid).flat()
Insert cell
Inputs.textarea({value:'"' + cplIds.join('","') + '"'})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more