Skip to content

feat(search): add highlight support for owner fields#597

Merged
whutchinson98 merged 3 commits intomainfrom
hutch/bac-163-update-highlight-to-support-owner-fields
Dec 12, 2025
Merged

feat(search): add highlight support for owner fields#597
whutchinson98 merged 3 commits intomainfrom
hutch/bac-163-update-highlight-to-support-owner-fields

Conversation

@whutchinson98
Copy link
Copy Markdown
Member

Summary

This PR add in highlight support for "owner" fields. It also adds in a boost on the owner queries so if you are searching an email it will prioritize matches that have a matching owner/participant over the raw content match itself.

Screenshots, GIFs, and Videos

@whutchinson98 whutchinson98 requested a review from a team as a code owner December 12, 2025 19:31
@linear
Copy link
Copy Markdown

linear bot commented Dec 12, 2025

Copy link
Copy Markdown
Contributor

@seanaye seanaye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change seems ok to me

// For content and name content search, we need to add in highlights for the owner
// fields
match args.search_on {
SearchOn::Content | SearchOn::NameContent => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i still feel like we should be building this in a composable way where we can distinguish between actual content and these more-so metadata fields. in the future i imagine we will have search for content:xxx from:yyy in:ddd and it'll be more difficult to disentangle if content encompasses all these things already. food for thought

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree, having a composable query language will definitely require changes to how we build the query. I think that is worth creating an RFD for and rebuilding as a separate project.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gbirman let's discuss in discovery meeting

@whutchinson98 whutchinson98 force-pushed the hutch/bac-163-update-highlight-to-support-owner-fields branch from 02df19e to 9bba467 Compare December 12, 2025 20:13
@whutchinson98 whutchinson98 merged commit 8745358 into main Dec 12, 2025
37 checks passed
@whutchinson98 whutchinson98 deleted the hutch/bac-163-update-highlight-to-support-owner-fields branch December 12, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants