Apply full enrichment to search results: entity icons, record names, and tags.
The search results to enrich (mutated in place)
The user performing the search
Enrich results with tags from both TaggedItems and ContentItemTags entities.
The search results to enrich (mutated in place)
The user performing the search
Handles Content Item results by promoting entity-sourced content items to their underlying entity records (Option B), or excluding redundant entity-sourced items, while preserving genuine external unstructured content items (PDFs, URLs, Markdown files).
When a content item originated from an Entity content source (or links to an Entity Record Document):
PromotedFromContentItemID so the engine verifies the origin row and its lane bound
rather than trusting the provider that found the content item.Genuine external content items (ContentSourceType !== 'Entity') remain as 'MJ: Content Items'.
All search results
The user performing the search
Processed results with entity-sourced content items promoted or excluded
Filter results to only include those with at least one tag matching the specified list. Uses case-insensitive comparison.
Enriches search results with entity icons, record names, and tags. Also handles filtering of redundant Content Item results that originate from entity-type content sources.