Properties example - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License
queryAccelerator.enabled=true
queryAccelerator.config.dir=shared/classes/alfresco/extension/querysets
queryAccelerator.populator.workerBatchSize=5000

If you are using Docker Compose in development, you will need to copy your query set definition into your running ACS repository container. One way is to use the following command:

docker cp custom_queryset.json <alfresco container>:/usr/local/tomcat/shared/classes/alfresco/extension/querysets/

In a Kubernetes environment, ConfigMaps can be used to add query set definitions. You will need to create a ConfigMap from the JSON file and mount the ConfigMap through a volume to the ACS repository pods.

kubectl create configmap custom-queryset-config --from-file=name_of_a_file.json

The necessary volumes are already provided out of the box and the files in ConfigMap custom-queryset-config will be mounted to /usr/local/tomcat/shared/classes/alfresco/extension/querysets/.

Note: From Kubernetes documentation: If there are some files in the mountPath location, they will be deleted.