-
Notifications
You must be signed in to change notification settings - Fork 6
/
kosh.ini
141 lines (108 loc) · 3.45 KB
/
kosh.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
## [api]
## Configuration section for kosh API settings. This section specifies
## where the kosh API endpoints will be deployed.
[api]
## [api.host]
## The host/IP address kosh will listen on.
; host: 0.0.0.0
## [api.port]
## The port kosh will listen on.
; port: 5000
## [api.root]
## The API context path kosh will serve.
; root: /api
## [data]
## Configuration section for kosh data settings. This section specifies how to
## connect to Elasticsearch and where XML lexical data with kosh files are.
[data]
## [data.host]
## The Elasticsearch host kosh will use, set to 127.0.0.1 when deploying via
## Docker to the host network, otherwise specify the host on which Elasticsearch
## listenes.
; host: 127.0.0.1
## [data.pool]
## String prefix to pool all Elasticsearch indices together. Should respect the
## character limitations regarding Elasticsearch index naming.
; pool: kosh
## [data.root]
## The path to XML lexical data with kosh files.
; root: /var/lib/kosh
## [data.spec]
## The filename of kosh mapping files for XML lexical data.
; spec: .kosh
## [data.sync]
## If set to a value greater then zero, kosh will automatically update
## Elasticsearch indexes when the underlying XML lexical data or the respective
## mapping files are modified. The value determines the interval in which files
## are checked for changes (in seconds).
; sync: 10
## [info]
## Configuration section for kosh info settings. This section specifies
## metdadata about this kosh instance.
[info]
## [info.desc]
## Description of the kosh instance.
; desc: kosh - APIs for Lexical Data
## [info.link]
## Link to external project website for this kosh instance.
; link: https://kosh.uni-koeln.de
## [info.mail]
## Contact e-mail address for this kosh instance.
; mail: info-kosh@uni-koeln.de
## [info.repo]
## Repository URL for this kosh instance.
; repo: https://github.com/cceh/kosh
## [logger]
## Configuration section for kosh logger settings. This section specifies, e.g.,
## the logger file and level.
[logger]
## [logger.file]
## Specifies the the file kosh will log to.
; file: /var/log/kosh.log
## [logger.level]
## Specifies the kosh logger level.
## (See: https://docs.python.org/3.7/library/logging.html#levels)
; level: INFO
## [namespaces]
## Configuration section to specify XML Namespaces used when parsing XML files.
## Beware: Namespaced XML Elements will not be parsed, if their namespace is not
## added to this key-value-mapping.
[namespaces]
## [namespaces.dc]
## Included by default.
; dc: http://purl.org/dc/elements/1.1
## [namespaces.tei]
## Included by default.
; tei: http://www.tei-c.org/ns/1.0
## [query_types]
## Configuration section for kosh query types settings. This section specifies
## each query type made available through kosh. To prevent easy crawling of
## all datasets, do not enable the following entries:
## ; prefix: False
## ; wildcard: False
## ; regexp: False
##
## For more information on each differen query type, visit:
## elastic.co/guide/en/elasticsearch/reference/current/term-level-queries.html
[query_types]
## [query_types.term]
## Enabled by default.
; term: True
## [query_types.fuzzy]
## Enabled by default.
; fuzzy: True
## [query_types.match]
## Enabled by default.
; match: True
## [query_types.match_phrase]
## Enabled by default.
; match_phrase: True
## [query_types.prefix]
## Disabled by default.
; prefix: False
## [query_types.wildcard]
## Disabled by default.
; wildcard: False
## [query_types.regexp]
## Disabled by default.
; regexp: False