Relative Content

Tag Archive for pythondjangoelasticsearch

Cannot index models from Django to Elasticsearch

I have a Django project where we’re going to use Elasticsearch for a full-text search. I have a task to connect it with the existing Django project. The first thing I found django-elasticsearch-dsl package. I did everything like in tutorial and all worked fine, but the idea was in using elasticsearch-dsl. I don’t understand how to create indexes right now. If in django-elasticsearch-dsl the only thing I need is to run python3 manage.py search_index --rebuild inside Django container, but here I have no idea. I store all code in documents.py.