blob: b471f197c98454b4324e0cee5a4383bd79255f38 [file] [log] [blame]
Nils Diewaldd37f7e42015-02-27 21:08:22 +00001# Krill Backend properties
2krill.properties = true
3krill.indexDir = [PATH TO INDEX DIRECTORY]
4krill.server.name = [UNIQUE NODE NAME]
5krill.server.baseURI = [LISTEN-URL INCLUDING PORT]
6
7# Krill Database properties
8krill.db.class = org.mariadb.jdbc.Driver
9krill.db.URL = jdbc:mysql://[DB_IP]:[DB_PORT]/[DB_NAME]
10krill.db.pwd = [DB_PWD]
11krill.db.user = [DB_USER]
12
13krill.index.commit.count = 134217000
14krill.index.commit.log = log/krill.commit.log
15krill.index.commit.auto = 500
16krill.index.relations.max = 100
Marc Kupietz3f298122025-04-17 08:25:05 +020017krill.index.textSize.max = 20000000
Akrone6958aa2025-09-26 11:02:01 +020018
margaretha0c21e242026-05-04 13:21:25 +020019# Maximum JVM heap memory used (in MB) before a search is aborted (0 = disabled)
20krill.search.memory.max = 0
21
Akrone6958aa2025-09-26 11:02:01 +020022# Token retrieval settings:
23#
24# krill.match.max.token = 5
25#
Akron88c66a92026-05-07 12:11:21 +020026## Maximum number (i.e. length) of tokens to be retrievable in a match.
Akrone6958aa2025-09-26 11:02:01 +020027## Matches longer than that will be cut.
28## Defaults to 50
29
30# krill.context.max.token =
31#
32## Maximum number (i.e. length) of tokens to be retrieved (left and right) of a match.
33## Defaults to 60
34
35# krill.kwic.max.token =
36#
37## Maximum total number of tokens in a KWIC snippet (left + match + right).
38## When set, this derives krill.context.left.maxShrink and
39## krill.context.right.maxShrink automatically:
40## totalShrink = (krill.match.max.token + 2 * krill.context.max.token) - kwic.max.token
41## Split evenly between left and right.
42## When this property is set, individual maxShrink values are ignored.
43## The existing krill.match.max.token remains in effect as a separate cap
44## on match length, preventing data leakage from sentence-level queries.
45## Not set by default (no KWIC cap - backward compatible).
46
47# krill.context.left.maxShrink = 0
48#
49## Maximum number of tokens the left context may shrink based on match length.
50## Defaults to 0 (no shrinking - full context is always returned).
51## When a match is long, the context shrinks by up to this many tokens,
52## keeping the total KWIC width manageable.
53## The total shrink is distributed proportionally between left and right
54## according to their respective maxShrink values.
55## Use the string "max" to allow the context to shrink entirely
56## (up to krill.context.max.token tokens).
57## Ignored when krill.kwic.max.token is set.
58## Note: Only token-based contexts are affected; character-based contexts
59## are currently not adjusted by this feature.
60
61# krill.context.right.maxShrink = 0
62#
63## Maximum number of tokens the right context may shrink based on match length.
64## Defaults to 0 (no shrinking - full context is always returned).
65## When a match is long, the context shrinks by up to this many tokens,
66## keeping the total KWIC width manageable.
67## The total shrink is distributed proportionally between left and right
68## according to their respective maxShrink values.
69## Use the string "max" to allow the context to shrink entirely
70## (up to krill.context.max.token tokens).
71## Ignored when krill.kwic.max.token is set.
72## Note: Only token-based contexts are affected; character-based contexts
73## are currently not adjusted by this feature.
74
Akron88c66a92026-05-07 12:11:21 +020075# krill.context.max.char =
76#
77## Maximum number of characters to be retrieved (left and right) of a match
78## when the client requests character-based context.
79## Character-based contexts are independent of token-based contexts:
80## the client chooses one or the other per request. When character context
81## is used, token-based maxShrink adjustment does NOT apply.
82## Defaults to 500
margaretha0c21e242026-05-04 13:21:25 +020083