Sven
(Sven)
2
I should add that when i remove the following part from init.js then the mongodb container starts without a problem.
db.personen.createSearchIndex(
"testSearchIndex",
{ mappings: { dynamic: true } }
);
After the mongodb container is running I can add a search index over curl for example:
mongosh mongodb://localhost:27017/test --eval "db.personen.createSearchIndex('testSearchIndex', {'mappings':{'dynamic': true}})"
But why can’t I add the search index create into the init.js? What is the error message telling me?