/
config.json
70 lines (58 loc) · 2.64 KB
/
config.json
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
{
# name of service
"service_name" : "BibSoup",
# allow_upload - set to "NO" if you dont want frontend upload to your bibserver install
"allow_upload" : "YES",
# elasticsearch settings
"ELASTIC_SEARCH_HOST" : "127.0.0.1:9200",
"ELASTIC_SEARCH_DB" : "bibserver",
"default_indices": [],
# a dict of the ES mappings. identify by name, and include name as first object name
"mappings" : {
"record" : {
"record" : {
"dynamic_templates" : [
{
"default" : {
"match" : "*",
"mapping" : {
"type" : "multi_field",
"fields" : {
"{name}" : {"type" : "string", "index" : "analyzed", "store" : "no"},
"exact" : {"type" : "string", "index" : "not_analyzed", "store" : "no"}
}
}
}
}
]
}
}
},
# identify how non-analyzed fields for faceting are differenetiated in the mappings
"facet_field" : ".exact",
# base URL of search service
"base_url" : "/search",
# default results and paging options (integer - array of integers)
"default_results_per_page" : 10,
"results_per_page_options" : [10, 20, 50, 100],
# The fields for faceting on
"facet_fields" : ["collection","type","journal","author","year"],
# fields to offer result sorting on
# note these must not be multi-valued e.g. not list or object fields.
"sort_fields" : ["received","title","year","journal","url","source"],
# fields to display as headers in search results
"display_fields" : ["author","title","journal","links"],
# search result display header
"result_display" : "{{author}} ({{year}})<br />{{title}}<br />{{howpublished}} {{journal}} {{pages}} {{booktitle}} {{publisher}}<br />{{links}}",
# functions to perform on particular result fields on display
"display_value_functions" : {
"title" : {"wrap" : {"start" : "<a class=\"list_result_field_showall\" href=\"\" alt=\"show more info\" title=\"show more info\"><strong>", "end" : "</strong></a>"}},
"journal" : {"wrap" : {"start" : "<em>", "end" : "</em>"}},
"author":{"authorify":{}},
"doi" : {"doiify" : {"resolver" : "http://dx.doi.org/"}},
"url" : {"linkify" : {}},
"collection": {"implicify":{}},
"person": {"personify":{}},
"links": {"bibsoup_links":{}}
}
}