Send profile filters in Mauro search request
pjmonks opened this issue · 0 comments
pjmonks commented
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:
- The namespace from the profile
- The metadata key
- The value
- Whether to use
phrase
orkeyword
search.
The type should be determined as:
- If the metadata key represents an enumeration, use
phrase
for exact matching - Otherwise, use
keyword
for fuzzy matching