MauroDataMapper/mdm-ui

Send profile filters in Mauro search request

pjmonks opened this issue · 0 comments

Description

Once #779 and MauroDataMapper/mdm-core#399 are completed, all profile filters should be passed to the Mauro search endpoint for the backend to process.

Parameters

The CatalogueSearchService will need to be updated to send this information in the POST request:

{
  // ... other search parameters ...
  "profileFields": [
    {
      "metadataNamespace": "...",
      "metadataPropertyName": "...",
      "filterTerm": "...",
      "type": "phrase"  // phrase | keyword (default: phrase)
    }
  ]
}

Send one or more filters inside the profileFields array. Each one will have:

  1. The namespace from the profile
  2. The metadata key
  3. The value
  4. Whether to use phrase or keyword search.

The type should be determined as:

  1. If the metadata key represents an enumeration, use phrase for exact matching
  2. Otherwise, use keyword for fuzzy matching