A video search for XOS Videos that have transcriptions.
Search is handled by Elasticsearch.
- Exec into your container:
docker exec -it video ash
- Start a Python shell:
python3
- Run these commands:
from app.video import Search
search = Search()
search.index_all()
To run the Flask development server:
- Copy
config.tmpl.env
toconfig.env
- Add
DEBUG=true
to yourconfig.env
- Run
make up
- Visit: http://localhost:8081
To run the gunicorn server:
- Set
DEBUG=false
in yourconfig.env
- Run
make up
- Visit: http://localhost:8081
When you've finished, remove with make down
To run linting and tests:
- Run
make up
- In another terminal tab run
docker exec -it video make linttest
- Production index runs on Elastic Cloud
- Re-indexing of public videos happens nightly
- ACMI website uses this index for search results: https://www.acmi.net.au/videos/