-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.conf
More file actions
71 lines (65 loc) · 1.65 KB
/
Copy pathbase.conf
File metadata and controls
71 lines (65 loc) · 1.65 KB
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
# elasticsearch connection & index
elastic {
host: localhost
port: 9200
user: null
pass: null
index: arxiv-index
doctype: arxiv
}
# flask http webserver
webserver {
host: localhost
port: 1337
debug: false
}
# search settings
search {
result_limit: 1000 # max. number of results to retrieve per query
session {
max_queries: 10 # max. number of queries to include in a search
first_query_must: true # at least one term of the latest query must match
exp_base: 0.75 # influences weights of the query history
}
weights {
# define the relative weights of query types in the regular search results
search {
text: 1.0 # weight of the fulltext search
topics: 0.5 # weight of the topic-based search
}
# define the relative weights of query types in the suggested search results
suggestions {
topics: 1.0 # weight of the topic-based search
text: 0.3 # weight of the fulltext search
}
}
spellchecker {
# enable spell checking for search terms
enabled: true
}
}
# paths to files used by this application
data {
# base directory for all files generated by this application
dir: "./data"
topics {
# path to the topic file (can point outside of the base directory)
file: "./data/topics.json"
# path to the topics cache file (relative to the base dir)
cache: topics-cached.pkl
# path to the topics cache checksum file (relative to the base dir)
checksum: topics-source.md5
}
}
# logging setup
logging {
console {
enabled: true
level: info
}
logfile {
enabled: false
level: debug
path: ./search.log
}
}