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

Better searching in TranscriptSearch.tsx #62

Open
tohuynh opened this issue Jun 27, 2021 · 0 comments
Open

Better searching in TranscriptSearch.tsx #62

tohuynh opened this issue Jun 27, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Projects

Comments

@tohuynh
Copy link
Collaborator

tohuynh commented Jun 27, 2021

Use Case

Please provide a use case to help us understand your request in context
From @JacksonMaxfield #61:
"Weird idea, and maybe something to just add an issue for to solve later or for someone else to take on at the hackathon or something. But it may be nice to come up with a system for substringing the text based off of the users query to reduce the amount of words in the resulting sentence. I.e. take the "Transcript Item w/ Search Query" storybook example. That is a long sentence, what if, when searching, the user types in a couple of words and just like the other event card system where we substring and find the prior N and tailing N words around the query result. So the sentence is: "Hi, I am hear today to discuss the addition of the proposed 35th avenue bike lane and how I think it will be a massive benefit to the whole community." That is a short example sentence, but using it, we say someone searches for "bike lane" and we have it parametrized to give the prior and tailing 7 words, the transcript search would show: "... the addition of the proposed 35th avenue bike lane and how I think it will be..." This is totally just a random thought and maybe something to add later after we deploy v3 and see all of this in action."

Modify the search results so that the speaker's text contains the searched query and N prior and N tailing words.

Example: ... N words <searched query> N words ...

One thing to consider: what if the sentence contains more than one instance of the searched query?

Solution

Please describe your ideal solution

Alternatives

Please describe any alternatives you've considered, even if you've dismissed them

@tohuynh tohuynh added enhancement New feature or request good first issue Good for newcomers labels Jun 27, 2021
@sarahjliu sarahjliu added this to To do in v3.0 Jul 10, 2021
@evamaxfield evamaxfield moved this from Ready for Dev to Backlog in v3.0 Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
No open projects
v3.0
Backlog
Development

No branches or pull requests

1 participant