Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to specify MESH_ELASTICSEARCH_MAPPING_MODE #878

Closed
mephinet opened this issue Sep 9, 2019 · 0 comments
Closed

unable to specify MESH_ELASTICSEARCH_MAPPING_MODE #878

mephinet opened this issue Sep 9, 2019 · 0 comments

Comments

@mephinet
Copy link
Contributor

mephinet commented Sep 9, 2019

I am unable to set the ElasticSearch Mapping Mode to strict via environment variables with Gentics Mesh 0.40.1:

$ docker run -e MESH_ELASTICSEARCH_MAPPING_MODE=STRICT -p 8080:8080  gentics/mesh-demo:0.40.1
...
13:17:26.181 [] INFO  [main] [c.g.m.e.c.env.Option] - Setting env via field access {MESH_ELASTICSEARCH_MAPPING_MODE=STRICT}
Exception in thread "main" java.lang.RuntimeException: Could no convert environment variable for type com.gentics.mesh.etc.config.search.MappingMode
        at com.gentics.mesh.etc.config.env.OptionUtils.convertValue(OptionUtils.java:45)
        at com.gentics.mesh.etc.config.env.OptionUtils.overrideWitEnvViaFieldSet(OptionUtils.java:85)
        at com.gentics.mesh.etc.config.env.Option.overrideWithEnv(Option.java:27)
        at com.gentics.mesh.etc.config.env.Option.overrideWithEnv(Option.java:40)
        at com.gentics.mesh.OptionsLoader.applyEnvironmentVariables(OptionsLoader.java:60)
        at com.gentics.mesh.OptionsLoader.createOrloadOptions(OptionsLoader.java:48)
        at com.gentics.mesh.demo.DemoRunner.main(DemoRunner.java:44)

From how I understand https://getmesh.io/docs/administration-guide/#_search_options , this is how it should be done...

@Jotschi Jotschi closed this as completed in 18a1f7f Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant