Autocomplete using PostgreSQL instead of Elasticsearch - Peterbe.com
PostgreSQL with a GIN trigram index and Django ORM bulk-indexing can replace Elasticsearch for small-scale autocomplete/typeahead efficiently and safely.
DRF serializer.data returns an OrderedDict by design; Django NOT queries use the tilde (~) with Q objects; disabling adblocker supports site maintenance.