Skip to content

Commit 155c33c

Browse files
committed
Rename App Search to Enterprise Search
Starting with 7.7, Elastic App Search and Elastic Workplace Search are now available as a single download known as Elastic Enterprise Search.
1 parent ffc52a9 commit 155c33c

File tree

7 files changed

+114
-71
lines changed

7 files changed

+114
-71
lines changed

.travis.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ before_script:
2222
- sed -i -e 's/\(elasticsearch.username:\) elastic/\1 kibana/g' -e 's/\(elasticsearch.password:\) changeme/\1 testpasswd/g' kibana/config/kibana.yml
2323
- sed -i -e 's/\(xpack.monitoring.elasticsearch.username:\) elastic/\1 logstash_system/g' -e 's/\(xpack.monitoring.elasticsearch.password:\) changeme/\1 testpasswd/g' logstash/config/logstash.yml
2424
- sed -i 's/\(password =>\) "changeme"/\1 "testpasswd"/g' logstash/pipeline/logstash.conf
25-
- sed -i 's/\(elasticsearch.password:\) changeme/\1 testpasswd/g' extensions/app-search/config/app-search.yml
25+
- sed -i -e 's/\(elasticsearch.password:\) changeme/\1 testpasswd/g' -e 's/\(secret_management.encryption_keys:\)/\1 [test-encrypt]/g' extensions/enterprise-search/config/enterprise-search.yml
2626
- sed -i 's/\(password:\) changeme/\1 testpasswd/g' extensions/apm-server/config/apm-server.yml
2727

2828
script:
@@ -39,12 +39,13 @@ script:
3939
- docker-compose stop logstash kibana
4040

4141
# Extensions
42-
# App Search
43-
- docker-compose -f docker-compose.yml -f extensions/app-search/app-search-compose.yml up -d app-search
44-
- .travis/run-tests-app-search.sh
45-
- docker-compose -f docker-compose.yml -f extensions/app-search/app-search-compose.yml ps
46-
- docker-compose -f docker-compose.yml -f extensions/app-search/app-search-compose.yml logs app-search
47-
- docker-compose -f docker-compose.yml -f extensions/app-search/app-search-compose.yml stop app-search
42+
# Enterprise Search
43+
- docker-compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml up -d enterprise-search
44+
- sleep 30
45+
- .travis/run-tests-enterprise-search.sh
46+
- docker-compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml ps
47+
- docker-compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml logs enterprise-search
48+
- docker-compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml stop enterprise-search
4849
# APM Server
4950
- docker-compose -f docker-compose.yml -f extensions/apm-server/apm-server-compose.yml up -d apm-server
5051
- .travis/run-tests-apm-server.sh
@@ -56,7 +57,7 @@ script:
5657
- >-
5758
docker-compose
5859
-f docker-compose.yml
59-
-f extensions/app-search/app-search-compose.yml
60+
-f extensions/enterprise-search/enterprise-search-compose.yml
6061
-f extensions/apm-server/apm-server-compose.yml
6162
down -v
6263

.travis/lib/testing.sh

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ function poll_ready {
1212
if [ "$#" -ge 3 ]; then
1313
args+=( '-u' "$3" )
1414
fi
15-
if [ "$#" -ge 4 ]; then
16-
args+=( '-o' '/dev/null' )
17-
fi
1815

1916
local label
2017
if [ "$MODE" == "swarm" ]; then

.travis/run-tests-app-search.sh renamed to .travis/run-tests-enterprise-search.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ declare MODE=""
1212
log 'Waiting for readiness of Elasticsearch'
1313
poll_ready elasticsearch 'http://localhost:9200/' 'elastic:testpasswd'
1414

15-
log 'Waiting for readiness of App Search'
16-
poll_ready app-search 'http://localhost:3002/login' ':' quiet
15+
log 'Waiting for readiness of Enterprise Search'
16+
poll_ready enterprise-search 'http://localhost:3002/api/ent/v1/internal/health' 'elastic:testpasswd'
1717

1818
log 'Retrieving private key from Elasticsearch'
19-
response="$(curl 'http://localhost:9200/.app-search-actastic-loco_moco_api_tokens/_search?q=name:private-key' -s -u elastic:testpasswd)"
19+
response="$(curl 'http://localhost:9200/.ent-search-actastic-app_search_api_tokens/_search?q=name:private-key' -s -u elastic:testpasswd)"
2020
hits="$(jq -rn --argjson data "${response}" '$data.hits.hits')"
2121
echo "$hits"
2222
count="$(jq -rn --argjson data "${response}" '$data.hits.total.value')"
+70-34
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,119 @@
1-
# App Search extension
1+
# Enterprise Search extension
22

3-
Elastic App Search provides access to a set of robust APIs and people friendly dashboard controls to deliver amazing
4-
search experiences, all backed by the Elastic Stack.
3+
Elastic Enterprise Search is a suite of products for search applications backed by the Elastic Stack.
54

65
## Requirements
76

8-
* 2 GB of free RAM, on top of the resources required by the other stack components and extensions
7+
* 2 GB of free RAM, on top of the resources required by the other stack components and extensions.
98

10-
App Search exposes the TCP port `3002` for its Web UI and API.
9+
Enterprise Search exposes the TCP port `3002` for its Web UI and API.
1110

1211
## Usage
1312

14-
To include App Search in the stack, run Docker Compose from the root of the repository with an additional command
15-
line argument referencing the `app-search-compose.yml` file:
13+
### Generate an encryption key
14+
15+
Enterprise Search requires one or more [encryption keys][enterprisesearch-encryption] to be configured before the
16+
initial startup. Failing to do so prevents the server from starting.
17+
18+
Encryption keys can contain any series of characters. Elastic recommends using 256-bit keys for optimal security.
19+
20+
Those encryption keys must be added manually to the [`config/enterprise-search.yml`][config-enterprisesearch] file. By
21+
default, the list of encryption keys is empty and must be populated using one of the following formats:
22+
23+
```yaml
24+
secret_management.encryption_keys:
25+
- my_first_encryption_key
26+
- my_second_encryption_key
27+
- ...
28+
```
29+
30+
```yaml
31+
secret_management.encryption_keys: [my_first_encryption_key, my_second_encryption_key, ...]
32+
```
33+
34+
> :information_source: To generate a strong encryption key, for example using the AES-256 cipher, you can use the
35+
> OpenSSL utility or any other online/offline tool of your choice:
36+
>
37+
> ```console
38+
> $ openssl enc -aes-256 -P
39+
>
40+
> enter aes-256-cbc encryption password: <a strong password>
41+
> Verifying - enter aes-256-cbc encryption password: <repeat your strong password>
42+
> ...
43+
>
44+
> key=<generated AES key>
45+
> ```
46+
47+
### Start the server
48+
49+
To include Enterprise Search in the stack, run Docker Compose from the root of the repository with an additional command
50+
line argument referencing the `enterprise-search-compose.yml` file:
1651

1752
```console
18-
$ docker-compose -f docker-compose.yml -f extensions/app-search/app-search-compose.yml up
53+
$ docker-compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml up
1954
```
2055

2156
Allow a few minutes for the stack to start, then open your web browser at the address http://localhost:3002 to see the
22-
App Search home page.
57+
Enterprise Search home page.
2358

24-
App Search is configured on first boot with the following default credentials:
59+
Enterprise Search is configured on first boot with the following default credentials:
2560

26-
* user: *app_search*
61+
* user: *enterprise_search*
2762
* password: *changeme*
2863

2964
## Security
3065

31-
The App Search password is defined inside the Compose file via the `APP_SEARCH_DEFAULT_PASSWORD` environment variable.
32-
We highly recommend choosing a more secure password than the default one for security reasons.
66+
The Enterprise Search password is defined inside the Compose file via the `ENT_SEARCH_DEFAULT_PASSWORD` environment
67+
variable. We highly recommend choosing a more secure password than the default one for security reasons.
3368

34-
To do so, change the value `APP_SEARCH_DEFAULT_PASSWORD` environment variable inside the Compose file **before the first
69+
To do so, change the value `ENT_SEARCH_DEFAULT_PASSWORD` environment variable inside the Compose file **before the first
3570
boot**:
3671

3772
```yaml
38-
app-search:
73+
enterprise-search:
3974
4075
environment:
41-
APP_SEARCH_DEFAULT_PASSWORD: {{some strong password}}
76+
ENT_SEARCH_DEFAULT_PASSWORD: {{some strong password}}
4277
```
4378

44-
> :warning: The default App Search password can only be set during the initial boot. Once the password is persisted in
45-
> Elasticsearch, it can only be changed via the Elasticsearch API.
79+
> :warning: The default Enterprise Search password can only be set during the initial boot. Once the password is
80+
> persisted in Elasticsearch, it can only be changed via the Elasticsearch API.
4681

47-
For more information, please refer to [Security and User Management][appsearch-security].
82+
For more information, please refer to [User Management and Security][enterprisesearch-security].
4883

49-
## Configuring App Search
84+
## Configuring Enterprise Search
5085

51-
The App Search configuration is stored in [`config/app-search.yml`][config-appsearch]. You can modify this file using
52-
the [Default App Search configuration][appsearch-config] as a reference.
86+
The Enterprise Search configuration is stored in [`config/enterprise-search.yml`][config-enterprisesearch]. You can
87+
modify this file using the [Default Enterprise Search configuration][enterprisesearch-config] as a reference.
5388

5489
You can also specify the options you want to override by setting environment variables inside the Compose file:
5590

5691
```yaml
57-
app-search:
92+
enterprise-search:
5893
5994
environment:
60-
app_search.auth.source: standard
95+
ent_search.auth.source: standard
6196
worker.threads: '6'
6297
```
6398

64-
Any change to the App Search configuration requires a restart of the App Search container:
99+
Any change to the Enterprise Search configuration requires a restart of the Enterprise Search container:
65100

66101
```console
67-
$ docker-compose -f docker-compose.yml -f extensions/app-search/app-search-compose.yml restart app-search
102+
$ docker-compose -f docker-compose.yml -f extensions/enterprise-search/enterprise-search-compose.yml restart enterprise-search
68103
```
69104

70-
Please refer to the following documentation page for more details about how to configure App Search inside a Docker
71-
container: [Run App Search as a Docker container][appsearch-docker].
105+
Please refer to the following documentation page for more details about how to configure Enterprise Search inside a
106+
Docker container: [Running Enterprise Search Using Docker][enterprisesearch-docker].
72107

73108
## See also
74109

75-
[App Search Self-Managed documentation][appsearch-selfmanaged]
110+
[Enterprise Search documentation][enterprisesearch-docs]
76111

77112

78-
[config-appsearch]: ./config/app-search.yml
113+
[config-enterprisesearch]: ./config/enterprise-search.yml
79114

80-
[appsearch-security]: https://swiftype.com/documentation/app-search/self-managed/security
81-
[appsearch-config]: https://swiftype.com/documentation/app-search/self-managed/configuration
82-
[appsearch-docker]: https://swiftype.com/documentation/app-search/self-managed/installation#docker
83-
[appsearch-selfmanaged]: https://swiftype.com/documentation/app-search/self-managed/overview
115+
[enterprisesearch-encryption]: https://www.elastic.co/guide/en/enterprise-search/current/encryption-keys.html
116+
[enterprisesearch-security]: https://www.elastic.co/guide/en/workplace-search/current/workplace-search-security.html
117+
[enterprisesearch-config]: https://www.elastic.co/guide/en/enterprise-search/current/configuration.html
118+
[enterprisesearch-docker]: https://www.elastic.co/guide/en/enterprise-search/current/docker.html
119+
[enterprisesearch-docs]: https://www.elastic.co/guide/en/enterprise-search/current/index.html

extensions/enterprise-search/config/app-search.yml

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
## Enterprise Search core configuration
3+
## https://www.elastic.co/guide/en/enterprise-search/current/configuration.html
4+
#
5+
6+
## --------------------- REQUIRED ---------------------
7+
8+
# Encryption keys to protect application secrets.
9+
secret_management.encryption_keys:
10+
# add encryption keys below
11+
#- add encryption keys here
12+
13+
## ----------------------------------------------------
14+
15+
# IP address Enterprise Search listens on
16+
ent_search.listen_host: 0.0.0.0
17+
18+
# URL at which users reach Enterprise Search
19+
ent_search.external_url: http://localhost:3002
20+
21+
# Elasticsearch URL and credentials
22+
elasticsearch.host: http://elasticsearch:9200
23+
elasticsearch.username: elastic
24+
elasticsearch.password: changeme
25+
26+
# Allow Enterprise Search to modify Elasticsearch settings. Used to enable auto-creation of Elasticsearch indexes.
27+
allow_es_settings_modification: true

extensions/enterprise-search/enterprise-search-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
version: '3.2'
22

33
services:
4-
app-search:
4+
enterprise-search:
55
build:
6-
context: extensions/app-search/
6+
context: extensions/enterprise-search/
77
args:
88
ELK_VERSION: $ELK_VERSION
99
volumes:
1010
- type: bind
11-
source: ./extensions/app-search/config/app-search.yml
12-
target: /usr/share/app-search/config/app-search.yml
11+
source: ./extensions/enterprise-search/config/enterprise-search.yml
12+
target: /usr/share/enterprise-search/config/enterprise-search.yml
1313
read_only: true
1414
environment:
1515
JAVA_OPTS: -Xmx2g -Xms2g
16-
APP_SEARCH_DEFAULT_PASSWORD: changeme
16+
ENT_SEARCH_DEFAULT_PASSWORD: changeme
1717
ports:
1818
- '3002:3002'
1919
networks:

0 commit comments

Comments
 (0)