Trying to enable site-wide search across a database of Shakespeare films; each film has slightly different timings for these lines, and the interactive transcripts are stored along with their corresponding video as JSONs in an S3 bucket.
Lines in a script are stored as anchor tags for users to jump to a particular line and share it (eg line 606 of Macbeth has an anchor link of https://scriptspeare.co.uk/Tragedy/Macbeth/#606=line when clicked on). Search bar should display each line as a result (for example, typing in ‘to be’ should bring up ‘to be or not to be, that is the question’ (#1611=line).
Currently stuck on a few bugs in Elastic's Site Search trial (no lines show up! photo attached), but thinking this might not be the correct format since the queries are to individual word indices, rather than the IDs of lines within a page. Highly likely that I'm missing something obvious as well; Shakespeare fans, help appreciated!