MLRS/gabra-api

Schedule updating of glosses collection in Node

Closed this issue · 1 comments

The glosses collection is an index collection, generated from lexemes, which is used when searching via gloss.
Currently it is created/updated manually via the make-glosses-collection script and expected to scheduled outside of the app.

This should be automated and scheduled directly from within the app, using for example node-cron or a similar package.
Efforts should also be made to:

  1. Make the script efficient/fast
  2. Remove outdated glosses. Currently things are only ever added, which could lead to incorrect search results, but this is seen as less critical.

Done as of e90bb89