Hi I am getting this error what can be the reaso...
# docker
a
Hi I am getting this error what can be the reason ?
h
I have not seen such error. I assume it could be wrong configuration.
It is ruflin/elastica - try to browse for the specific error message
a
I see
I will try
thank you πŸ™‚
h
For nothing πŸ™‚
f
Hi Ahmad, Elasticsearch must be able to read the file if you reference it in the schema under synonyms_path within a filter. Usually permission problem. You don’t necessarily have to use a file, but you could also specify the synonyms directly in the schema, if there are not too many... https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-tokenfilter.html#_solr_synonyms
h
You cannot use this file as elasticSearch is running in different container.
a
I tried changing the permission but did not work
I tried even deleting the file πŸ˜„
I think the missing link here is that these files do not exist in the container because docker-compose did not move them there … the question is how do I change the deployment recipe ?
it seems like the missing part was re-boot the sdk after changing the configuration of docker-compose for elastic search
now it works πŸ™‚
thank you all πŸ™‚
h
What composer changes have you done?
a
I changed the volume mapping for ElasticSearch to include new config files
I added
config
directory here
docker/context/elasticsearch/
then added a new volume mapping
- ./${DEPLOYMENT_PATH}/context/elasticsearch/config:/usr/share/elasticsearch/config/analysis:ro
in
docker/generator/src/templates/service/elastic/6.8/elastic.yml.twig
I tried reset and clean then up … finally I deleted all the generated files and re-booted
h
So it is just second volume with the same config?
a
not the same config … new files for dictionary configuration and search terms ..etc
synonyms.txt
h
Is it mandatory?
a
it depends on your elastic search usage … you can add all the synonyms in the schema file but in my case the synonyms are too large to include in the schema file
I would not say it is mandatory
h
I got it.
Thanks for your experience.
a
thank you for you support πŸ™‚
btw is there a way to get the logs from spryker in one directory ?
h
@plain-barista-64036 I assume we would need to have the functionality in Docker SDK to mount synonyms.txt if provided.
According logs: you can set any destination in your config_default.php files.
a
because after the deployment is done I have to add new mapping using (Docker Kitematic) to Yves and Zed containers