opendata.cern.ch icon indicating copy to clipboard operation
opendata.cern.ch copied to clipboard

Conflicts in the attributes of the opensearch schemas

Open psaiz opened this issue 1 year ago • 2 comments

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

psaiz avatar Nov 22 '23 15:11 psaiz

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

psaiz avatar Jan 26 '24 07:01 psaiz

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)

psaiz avatar Feb 02 '24 14:02 psaiz