The Exact Term search feature, that allows searching using the equals operator =, is disabled by default to save index space. It’s possible to enable it for specific properties and property types using the following configuration file /alfresco/search/elasticsearch/config/exactTermSearch.properties located in the Alfresco Repository.
| Property | Description |
|---|---|
| alfresco.cross.locale.datatype.0 | A new cross locale field has been added for any property of this data-type. For example {http://www.alfresco.org/model/dictionary/1.0}text. |
| alfresco.cross.locale.property.0 | A new cross locale field to cover exact term search) has been added for the property. For example {http://www.alfresco.org/model/content/1.0}content. |
You can add as many data-types and properties as you like by adding lines and incrementing the associated index:
alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text
alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content
alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext
alfresco.cross.locale.property.0={http://www.alfresco.org/model/content/1.0}content
In order to overwrite this configuration when using Docker, mount this file as an external volume. Following sample describes a local configuration to be applied to Elasticsearch Search Subsystem when using Docker Compose deployment:
services:
alfresco:
volumes:
- ./exactTermSearch.properties:/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/search/elasticsearch/config/exactTermSearch.properties
If you are using Content Services 23.3, refer to the following sample:
services:
alfresco:
volumes:
- ./exactTermSearch.properties:/usr/local/tomcat/shared/classes/alfresco/extension/exactTermSearch.properties