08-28-2018 03:01 AM
I want to change solr-config but i haven't any example. Can you help me ?
08-28-2018 03:47 AM
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.
08-28-2018 03:56 AM
I have read them many times but i couldn't any change.
08-28-2018 04:06 AM
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.
08-28-2018 04:11 AM
Alfresco edition 6.0 - General Release: 201806
08-28-2018 04:38 AM
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.
08-28-2018 04:44 AM
Or you can just add a new "JAVA_OPTS" entry at
08-05-2021 11:20 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.