Open slugbucket opened 5 years ago
Direct searching of the clue would remove the need to maintain a separate cue_words table and having to develop the form functionality to support it; this arrangement is informal at best with no direct association between a specific clue and its trigger words.
See https://dev.to/aligoren/using-elasticsearch-with-python-and-flask-2i0e for an example of using Flask and ElasticSearch.
Instead of having to maintain a separate list of trigger words manually extracted from the clue at submission time (or by adding to the table through SQL) it would be better to search a clue document directly for the triggers in the clues.