This is PostgreSQL version of Turkish Movie Search Engine. Code contains a template for using FastAPI backend with PostgreSQL for text search. There are two search methods:
- Full Text Search using TS Vectors (
/ftsendpoint) - Full Text Search using Trigrams (
/trgmendpoint)
Data source: Turkish Movie Sentiment Analysis Dataset
- I just selected unique movie names.
There are only two prerequisites:
git clone https://github.com/silverstone1903/autocomplete-search-fastapi-postgresql-fts.gitdocker-compose up -dIf you make any changes you can add --build.
docker-compose up --build -ddocker-compose downWhen running containers with detached mode (-d) they work in the background thus you can't see the flowing logs. If you want to check compose logs with cli you can use logs.
docker-compose logs --tail 50- FastAPI (UI): http://localhost:8000
If you want to run the tests inside the container;
docker-compose exec web pytest tests -svTest results ππ»
Resources Tests




