In case of a conversion of an existing instance from another search basin to elasticsearch,
MAYAN_SEARCH_BACKEND: mayan.apps.dynamic_search.backends.elasticsearch.ElasticSearchBackend
MAYAN_SEARCH_BACKEND_ARGUMENTS: "{'client_hosts':['http://elasticsearch:9200']}"
or
MAYAN_SEARCH_BACKEND: mayan.apps.dynamic_search.backends.elasticsearch.ElasticSearchBackend
MAYAN_SEARCH_BACKEND_ARGUMENTS: "{'client_hosts':['http://elasticsearch:9200'],'client_http_auth':['elastic','mayanespassword']}"
the following commands after conversion via environment:
docker compose run --rm mayan run_command search_initialize
docker compose run --rm mayan run_command search_reindex
Replace "mayan" with the service name of your own docker compose stack