Skip to content

Commit

Permalink
[DOCS-7207] Add Environment variables (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveralfresco2018 authored Sep 29, 2023
1 parent 1b5ec48 commit e2a33fa
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions search-enterprise/latest/admin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ There are a number of processes and procedures for maintaining and administering
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 `/alfresco/search/elasticsearch/config/exactTermSearch.properties` configuration file located in the Alfresco Repository.

|Property|Description|
|--------|-----------|
| Property | Description |
| -------- | ----------- |
| alfresco.cross.locale.datatype.0 | A new cross locale field is added for any property of this data-type to enable exact term search. For example, {http://www.alfresco.org/model/dictionary/1.0}text. The Exact Term search is disabled by default. |
| alfresco.cross.locale.property.0 | A new cross locale field is added for the property to enable exact term search. For example, {http://www.alfresco.org/model/content/1.0}content. The Exact Term search is disabled by default. |

Expand All @@ -25,7 +25,7 @@ alfresco.cross.locale.property.0={http://www.alfresco.org/model/content/1.0}cont

To overwrite this configuration when using Docker compose you can mount this file as an external volume. The following sample describes a local configuration to be applied to the Elasticsearch Search Subsystem when using Docker compose:

```docker
```yml
services:
alfresco:
volumes:
Expand All @@ -34,6 +34,24 @@ services:
> **Note:** Once complete you must perform a re-index. It is recommended you enable the exact term feature before you start creating an index.
You can also add these environment variables directly to the Alfresco `JAVA_OPTS` section of your Docker compose file.

```yml
services:
alfresco:
image: quay.io/alfresco/alfresco-content-repository:7.4.0
mem_limit: 1900m
environment:
JAVA_TOOL_OPTIONS: -Dencryption.keystore.type=JCEKS -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding -Dencryption.keyAlgorithm=DESede -Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore -Dmetadata-keystore.password=mp6yc0UD9e -Dmetadata-keystore.aliases=metadata -Dmetadata-keystore.metadata.password=oKIWzVdEdA -Dmetadata-keystore.metadata.algorithm=DESede
JAVA_OPTS: -Ddb.driver=org.postgresql.Driver
...
-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
...
```

### Mapping

When you index a document that contains a new field, Search Enterprise adds the field dynamically to the document, or to the inner objects within a document. Inner objects inherit the dynamic setting from their parent object or from the mapping type. A dynamic parameter controls whether new fields are added dynamically. The default value is `true` and should be disabled to avoid a large index, unless a large index is necessary. This can be done when you create the index, using the following command:
Expand Down

0 comments on commit e2a33fa

Please sign in to comment.