opendata.cern.ch
opendata.cern.ch copied to clipboard
Conflicts in the attributes of the opensearch schemas
The schema of opendata defines 3 objects (records, glossary and docs). All these obejcts are stored under indices like record-<type>
. The searches are done in all the indices.
There are some conflicts in the attributes defined for those objects:
- Experiment:
Type | Index names
-- | --
keyword | records-docs-v1.0.0-1700664727, records-record-v1.0.0-1700664727
object | records-glossary-term-v1.0.0-1700664727
- Collections:
keyword | records-record-v1.0.0-1700664727
-- | --
object | records-docs-v1.0.0-1700664727, records-glossary-term-v1.0.0-1700664727
It would be better to be consistent, and store the attribute with the same type for all the objects
Most of the issues have been addressed. The one left is for collections
. That one is a bit trickier, so it deserves its own PR
For the record, the one of experiment
has also been fixed (it used to be an array of dictionaries for glossaries, and an array for docs and records)