Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight matches in main search results #1065

Closed
LukasKalbertodt opened this issue Jan 10, 2024 · 3 comments
Closed

Highlight matches in main search results #1065

LukasKalbertodt opened this issue Jan 10, 2024 · 3 comments
Assignees
Labels
area:search Related to Tobira's search
Milestone

Comments

@LukasKalbertodt
Copy link
Member

When searching for "Peter", then that part of the presenter should be highlighted in the search results. Same for all other metadata fields of course. The style should make sure people can easily see the matches at a glance, but without being super ugly or burning one's eyes.

There are some challenges here since (a) most metadata can be truncated and (b) in the future, some metadata will only be shown if there is a match. So the match influences what metadata is shown and how to truncate metadata. For example, if there is a match at the end of the description, that part should be shown with some context around it. And not just the start of the description. This also briefly came up here.

@oas777
Copy link
Collaborator

oas777 commented Jan 10, 2024

As for highlighting keep in mind we probably won't be able to do this when searching slides and transcripts unless we use a timeline representation. This probably requires a clear distinction of "search in DC metadata" vs. "search in video (slides/transcripts)".

@LukasKalbertodt
Copy link
Member Author

Yeah, somehow indicating that a match was found in slides/transcripts must work a bit differently than matches in text metadata, true.

@LukasKalbertodt LukasKalbertodt self-assigned this Apr 11, 2024
@LukasKalbertodt LukasKalbertodt moved this from Todo to In Progress ⏳ in Tobira Oct 23, 2024
@LukasKalbertodt LukasKalbertodt added this to the v3.0 milestone Nov 13, 2024
@owi92 owi92 moved this from In Progress ⏳ to In Review 👀 in Tobira Nov 18, 2024
owi92 added a commit that referenced this issue Nov 18, 2024
This PR improves the whole main search page in various ways. Most
important points:

- Thumbnails are now on the left (I know a certain someone who will very
much welcome this change 😉 )
- The three different kinds of results were designed to be visually
easier to distinguish.
- Videos and series also show the realm path (if there is only one host
realm)
- The date is added to videos
- The matching portion in search results is highlighted, to show the
user immediately why a result appears.
- Note: This does not work for "creators" yet, due to a limitation in
the search index we use. We have to wait for an upstream fix.
- Note: metadata like description and title are truncated if too long.
If the match would appear in the parts that are cut off, it would be
still confusing for the user. Therefore, the metadata is truncated/cut
in such a way that the part with the match is shown. (Example: first
result for search "hadron myers")

This PR is a draft because I still want to do this:
- [x] Talk to our designer
- [x] Squash two mobile keyboard bugs
- [x] ~~Potentially change the "realm" icon~~ -> No
- [x] Fix bug where the last input on the search field can sometimes be
ignored
- [x] ~~Make highlight color stronger~~ -> See some comments below

In a separate, follow-up PR I still plan on doing these search-related
things:
- Use Meili federated search (improves ranking, potentially speed, and
prepares pagination)
- Improve ranking to make series appear before videos of that series
with title = series title when searching for series title
- Potentially merge series and page results when the page is a
"series-only-page" for that series
- Maybe: with multiple host realms, if only one exists that derives its
name from the series/event, use it for breadcrumbs & link.
- Finally decide about #500

Finally, filtering is still missing, which deserves a PR on its own.

---

Feedback is very welcome!


Fixes #470
Fixes #1066
Fixes #1065
@LukasKalbertodt
Copy link
Member Author

Done in #1273

@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✔️ in Tobira Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:search Related to Tobira's search
Projects
Status: Done ✔️
Development

No branches or pull requests

2 participants