solr

cancel
Showing results for 
Search instead for 
Did you mean: 
taskinbinbir
Member II

solr

I want to change solr-config but i haven't any example. Can you help me ?

7 Replies
cesarista
Customer

Re: solr

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.

taskinbinbir
Member II

Re: solr

I have read them many times but i couldn't any change.

cesarista
Customer

Re: solr

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.

taskinbinbir
Member II

Re: solr

Alfresco edition 6.0 - General Release: 201806

cesarista
Customer

Re: solr

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.

angelborroy
Alfresco Employee

Re: solr

Or you can just add a new "JAVA_OPTS" entry at 

https://github.com/Alfresco/SearchServices/blob/master/packaging/src/docker/6.x/docker-compose.yml#L...

Hyland Developer Evangelist
jelenajjovanosk
Active Member

Re: solr

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.