You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manual/api/authentication.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ SeaSearch uses accounts to manage API permissions. When the program starts for t
19
19
20
20
Here is an example of setting the administrator account via shell:
21
21
```
22
-
set ZINC_FIRST_ADMIN_USER=admin
23
-
set ZINC_FIRST_ADMIN_PASSWORD=Complexpass#123
22
+
set INIT_SS_ADMIN_USER=admin
23
+
set INIT_SS_ADMIN_PASSWORD=Complexpass#123
24
24
```
25
25
!!! tip
26
26
In most scenarios, you can use the administrator account to provide access for applications. Only when you need to integrate multiple applications with different permissions, you should create regular users.
Copy file name to clipboardExpand all lines: manual/api/index_management.md
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,9 @@ Analyzers can be configured as default when creating an index, or they can be se
39
39
SeaSearch supports the following analyzers, which can be found here: [ZincSearch Documentation](https://zincsearch-docs.zinc.dev/api/index/analyze/). The concepts such as tokenization and token filters are consistent with ES and support most of the commonly used analyzers and tokenizers in ES.
40
40
41
41
### Chinese Analyzer
42
-
To enable the Chinese analyzer in the system, set the environment variable `ZINC_PLUGIN_GSE_ENABLE=true`.
42
+
To enable the Chinese analyzer in the system, set the environment variable `SS_PLUGIN_GSE_ENABLE=true` in `.env`.
43
43
44
-
If you need more comprehensive support for Chinese word dictionaries, set `ZINC_PLUGIN_GSE_DICT_EMBED = BIG`.
44
+
If you need more comprehensive support for Chinese word dictionaries, set `SS_PLUGIN_GSE_DICT_EMBED = BIG`.
45
45
46
46
`GSE` is a standard analyzer, so you can directly assign the Chinese analyzer to fields in the mappings:
47
47
```
@@ -55,6 +55,15 @@ PUT /es/my-index/_mappings
55
55
}
56
56
}
57
57
```
58
-
If users have custom tokenization habits, they can specify their dictionary files by setting the environment variable `ZINC_PLUGIN_GSE_DICT_PATH=${DICT_PATH}`, where `DICT_PATH` is the actual path to the dictionary files. The `user.txt` file contains the dictionary, and the `stop.txt` file contains stop words. Each line contains a single word.
58
+
If users have custom tokenization habits, they can specify their dictionary files by setting the environment variable `SS_PLUGIN_GSE_DICT_PATH=${DICT_PATH}` in `.env`, where `DICT_PATH` is the actual path to the dictionary files. The `user.txt` file contains the dictionary, and the `stop.txt` file contains stop words. Each line contains a single word.
59
59
60
60
GSE will load the dictionary and stop words from this path and use the user-defined dictionary to segment Chinese sentences.
61
+
62
+
63
+
!!! tip
64
+
After enabling Chinese Analyzer, you have to restart the service to enable changing:
Copy file name to clipboardExpand all lines: manual/config/README.md
+21-13Lines changed: 21 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,15 @@
1
1
# SeaSearch Configuration
2
2
For the official ZincSearch configuration, refer to: [ZincSearch Official Documentation](https://zincsearch-docs.zinc.dev/environment-variables/).
3
3
4
-
The following configuration options are the ones we’ve extended. All configurations are set via environment variables.
4
+
The following configuration options are the ones we’ve extended. All configurations can be set in `.env`.
5
+
6
+
!!! tip
7
+
After adding new vairables or modifying the existing variables, you have to restart the service to enable changing:
8
+
9
+
```sh
10
+
docker compose down
11
+
docker compose up -d
12
+
```
5
13
6
14
## Local Storage
7
15
-`SS_DATA_PATH`: Local storage path (default ./data). This is a required option and will be used as the SeaSearch system storage path (replaces the original `ZINC_DATA_PATH`).
@@ -33,16 +41,16 @@ These configurations are only effective when `SS_STORAGE_TYPE=s3`.
33
41
## Example SeaSearch Configuration
34
42
### Enabling Local Disk as Storage Backend
35
43
```sh
36
-
ZINC_FIRST_ADMIN_USER=admin
37
-
ZINC_FIRST_ADMIN_PASSWORD=password
44
+
INIT_SS_ADMIN_USER=admin
45
+
INIT_SS_ADMIN_PASSWORD=password
38
46
SS_DATA_PATH=./data
39
47
```
40
48
41
49
### Enabling S3 as Storage Backend
42
50
=== "AWS"
43
51
``` sh
44
-
ZINC_FIRST_ADMIN_USER=admin
45
-
ZINC_FIRST_ADMIN_PASSWORD=password
52
+
INIT_SS_ADMIN_USER=admin
53
+
INIT_SS_ADMIN_PASSWORD=password
46
54
SS_DATA_PATH=./data
47
55
SS_STORAGE_TYPE=s3
48
56
SS_S3_ACCESS_ID=<your-s3-key-id>
@@ -54,8 +62,8 @@ These configurations are only effective when `SS_STORAGE_TYPE=s3`.
54
62
```
55
63
=== "Exoscale"
56
64
``` sh
57
-
ZINC_FIRST_ADMIN_USER=admin
58
-
ZINC_FIRST_ADMIN_PASSWORD=password
65
+
INIT_SS_ADMIN_USER=admin
66
+
INIT_SS_ADMIN_PASSWORD=password
59
67
SS_DATA_PATH=./data
60
68
SS_STORAGE_TYPE=s3
61
69
SS_S3_ACCESS_ID=<your-s3-key-id>
@@ -66,8 +74,8 @@ These configurations are only effective when `SS_STORAGE_TYPE=s3`.
66
74
```
67
75
=== "Hetzner"
68
76
``` sh
69
-
ZINC_FIRST_ADMIN_USER=admin
70
-
ZINC_FIRST_ADMIN_PASSWORD=password
77
+
INIT_SS_ADMIN_USER=admin
78
+
INIT_SS_ADMIN_PASSWORD=password
71
79
SS_DATA_PATH=./data
72
80
SS_STORAGE_TYPE=s3
73
81
SS_S3_ACCESS_ID=<your-s3-key-id>
@@ -79,8 +87,8 @@ These configurations are only effective when `SS_STORAGE_TYPE=s3`.
79
87
```
80
88
=== "Other Public Hosted S3 Storag"
81
89
```sh
82
-
ZINC_FIRST_ADMIN_USER=admin
83
-
ZINC_FIRST_ADMIN_PASSWORD=password
90
+
INIT_SS_ADMIN_USER=admin
91
+
INIT_SS_ADMIN_PASSWORD=password
84
92
SS_DATA_PATH=./data
85
93
SS_STORAGE_TYPE=s3
86
94
SS_S3_ACCESS_ID=<your-s3-key-id>
@@ -92,8 +100,8 @@ These configurations are only effective when `SS_STORAGE_TYPE=s3`.
0 commit comments