-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.ts
124 lines (114 loc) · 2.12 KB
/
test.ts
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
# »find« extension configuration for the Edfu index.
#
# 2013 Sven-S. Porst, SUB Göttingen <porst@sub.uni-goettingen.de>
#
plugin.tx_find {
# Paths for own templates and partials.
# Most of them use symlinks to point back to the standard files provided by the extension.
view {
templateRootPath = EXT:find/Projects/test/Templates/
partialRootPath = EXT:find/Projects/test/Partials/
}
settings {
# Connection setup for the Solr index.
# Needs to be adapted / overwritten for the final configuration.
connection {
host = 127.0.0.1
port = 8080
path = /solr/edfu
timeout = 10
}
# Query field configuration
queryFields {
10 {
id = name
type = Text
}
11 {
id = name2
extended = 1
type = Text
query = name:%1$s
queryAlternate.1 = name:%1$s~0.7
noescape = 1
}
12 {
id = name3
extended = 1
type = Text
autocomplete = 1
autocompleteDictionary = name
}
20 {
id = year
extended = 1
type = Range
query = from:[* TO %2$s] AND to:[%1$s TO *]
default.0 = *
default.1 = *
}
30 {
id = hidden
extended = 1
type = Hidden
default = surprise
}
40 {
id = country
extended = 1
type = Select
options {
blank =
key = value
key2 = value2
}
default = key
}
50 {
id = band
extended = 1
type = SelectFacet
facetID = band
query = band:%s
}
60 {
id = version
extended = 1
type = Radio
options {
1 = Steak
2 = Chicken
3 = Pancake
}
default = 2
}
}
# Set up the correspondence between data fields and query field IDs.
# Used for creating the links.
queryFieldForDataField {
ort = ort
}
# Sort by the sort field in the documents.
# These have differing content depending on their type.
sort {
1 {
id = default
sortCriteria = sort asc
}
}
# Fields to use for displaying the result list.
standardFields {
title = transliteration
snippet = uebersetzung
}
# Facet configuration.
facets {
50 {
id = band
field = band
hidden = 1
fetchMinimum = 0
}
}
}
}