I want to change solr-config but i haven't any example. Can you help me ?
Hi:
Check the following links to familiarize with SOLR configuration:
Configuring search with Solr 4 | Alfresco Documentation
Configuring Alfresco Search Services with Solr 6 | Alfresco Documentation
Regards.
--C.
I have read them many times but i couldn't any change.
May you be more specific ? For example, do you use SOLR 4 or SOLR 6 ? what version of Alfresco do you use ? or just what type of configuration change do you want to do ?
Regards.
--C.
P.S: Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing.
Alfresco edition 6.0 - General Release: 201806
In that case, besides you need to be familiarized with docker setup (the above links refer to SOLR in Alfresco 5). You should customize your own docker-compose configuration in docker-compose.yml, for example using custom environment variables in solr6 image, forwarding to a different port, or mounting the corresponding configuration directories for SOLR locally such as solrcore.properties or shared.properties, it depends on what you want to config...
Regards.
--C.
Or you can just add a new "JAVA_OPTS" entry at
Hi,
I want to configure alfresco.cron SOLR property in my docker-compose.yml file within SOLR_OPTS. And I try to do that, like this:
ng-office-ass:
image: alfresco/alfresco-search-services:2.0.1
environment:
SOLR_ALFRESCO_HOST: ng-office-acs
SOLR_ALFRESCO_PORT: 8080
SOLR_SOLR_HOST: ng-office-ass
SOLR_SOLR_PORT: 8983
SOLR_CREATE_ALFRESCO_DEFAULTS: alfresco,archive
ALFRESCO_SECURE_COMMS: none
SOLR_OPTS: "$SOLR_OPTS -Dalfresco.cron=0/2 * * * * ? *"
ports:
- "8983:8983"
volumes:
- ng-office-ass-volume:/opt/alfresco-search-services/contentstore
- ng-office-ass-volume:/opt/alfresco-search-services/data
depends_on:
- ng-office-acs
But the result is the next error:
ng-office-ass_1 | Error: Could not find or load main class contentstore
ng-office-ass_1 | Caused by: java.lang.ClassNotFoundException: contentstore
A also tried to add this property as a new "JAVA_OPTS" entry. I didn't get any error message, but after I checked solrcore. properties file in my ass container I can see that alfresco.cron property is the same.
I read all the documentation, and I cannot found how to configure solr properties(https://docs.alfresco.com/search-services/latest/config/properties/#solr-core-configuration-properti...) in the docker-comose.yml file.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.