Meta collections

Hey there,

 

Is it possible to combine an XML collection and a file-copy collection into a meta-collection? If so, will metadata classes be grouped together as expected?

Hi Aleks -

 

Simultaneously querying and co-ranking different collection types is exactly what meta collections are designed for.

 

Some prior planning is recommended when it comes to aligning metadata mappings, though.   You'll generally be wanting to map analogous concepts across collections (e.g. Type =~ Category; Author =~ Contributor). When implementing, either:

  1. Use shared, consistent metamap.cfg / xml.cfg files (usually defined within the meta collection, and symbolically linked to from the component collections at the file system level), particularly when adding several component collections to a meta collection OR
  2. Ensure the component collections' xml.cfg files / metamap.cfg files do not have inconsistent combinations of metadata field types (e.g. one with a combination of indexed text, non-indexed text, numeric metadata and geospatial metadata, and another collection with only indexed text)

Component collections may operate perfectly well in isolation, but mixing incompatible index types in a meta collection will produce a Public UI error:   [68] Indexes written in an incompatible format. check_bldinfo()

 

Overloading metadata fields is certainly feasible:

 

xml-collection/xml.cfg:

 

  a,1,//author

 

file-copy-collection/metamap.cfg:

 

  a,1,DCTERMS.author

 

meta-collection/collection.cfg:

 

  query_processor_options=-SM=both -SF=a

One thing to take into consideration with mapping metadata is that field types must be identical across all components of a meta collection. If you map a field as standard (i.e. interpret as string pretty much) in one component, you can not map it as numerical in another. Doing so will cause field width mismatches due to the underlying nature of the numerical fields, so do take that into consideration.