The method of returning keywords doesn't work well when the users searches for a phrase that exists across separate rows within the transcript. It also doesn't provide much context. For example if the query is foo bar pancake yeet and the rows are ['foo bar ', 'pancake', 'yeet'] the current method will return three rows and offer little context. If we create a dedicated table for the full transcript and combine it with the fts5 snippet function we can allow the user to control the number of words around their search keyword and still provide precise time stamps. We still need a way to find the time stamps of the returned snippet given a segment of arbitrary length.
The method of returning keywords doesn't work well when the users searches for a phrase that exists across separate rows within the transcript. It also doesn't provide much context. For example if the query is
foo bar pancake yeetand the rows are['foo bar ', 'pancake', 'yeet']the current method will return three rows and offer little context. If we create a dedicated table for the full transcript and combine it with the fts5 snippet function we can allow the user to control the number of words around their search keyword and still provide precise time stamps. We still need a way to find the time stamps of the returned snippet given a segment of arbitrary length.