blob: 081d04b494f66bdeab2768d4f8de09519abbd778 [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
19# Token retrieval settings:
20#
21# krill.match.max.token = 5
22#
23## Maximum number (i.e. length) of tokens to be retrievable.
24## Matches longer than that will be cut.
25## Defaults to 50
26
27# krill.context.max.token =
28#
29## Maximum number (i.e. length) of tokens to be retrieved (left and right) of a match.
30## Defaults to 60
31
32# krill.kwic.max.token =
33#
34## Maximum total number of tokens in a KWIC snippet (left + match + right).
35## When set, this derives krill.context.left.maxShrink and
36## krill.context.right.maxShrink automatically:
37## totalShrink = (krill.match.max.token + 2 * krill.context.max.token) - kwic.max.token
38## Split evenly between left and right.
39## When this property is set, individual maxShrink values are ignored.
40## The existing krill.match.max.token remains in effect as a separate cap
41## on match length, preventing data leakage from sentence-level queries.
42## Not set by default (no KWIC cap - backward compatible).
43
44# krill.context.left.maxShrink = 0
45#
46## Maximum number of tokens the left context may shrink based on match length.
47## Defaults to 0 (no shrinking - full context is always returned).
48## When a match is long, the context shrinks by up to this many tokens,
49## keeping the total KWIC width manageable.
50## The total shrink is distributed proportionally between left and right
51## according to their respective maxShrink values.
52## Use the string "max" to allow the context to shrink entirely
53## (up to krill.context.max.token tokens).
54## Ignored when krill.kwic.max.token is set.
55## Note: Only token-based contexts are affected; character-based contexts
56## are currently not adjusted by this feature.
57
58# krill.context.right.maxShrink = 0
59#
60## Maximum number of tokens the right context may shrink based on match length.
61## Defaults to 0 (no shrinking - full context is always returned).
62## When a match is long, the context shrinks by up to this many tokens,
63## keeping the total KWIC width manageable.
64## The total shrink is distributed proportionally between left and right
65## according to their respective maxShrink values.
66## Use the string "max" to allow the context to shrink entirely
67## (up to krill.context.max.token tokens).
68## Ignored when krill.kwic.max.token is set.
69## Note: Only token-based contexts are affected; character-based contexts
70## are currently not adjusted by this feature.
71
72
73