-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsru.conf
executable file
·121 lines (81 loc) · 4.83 KB
/
sru.conf
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
<?xml version="1.0" encoding="utf-8"?>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Configuration file for the crossQuery full-text query servlet -->
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<SRU-config>
<!-- =====================================================================
Tag: <logging level="xxx"/>
Descrip: Controls how much detail to output. xxx can be one of:
silent: No logging
errors: Log servlet restarts and errors
warnings: Log restarts, errors, and warnings
info: Normal. Log all above, plus routine info msgs
debug: Verbose. Log all above, plus debug msgs
-->
<logging level="debug"/>
<!-- =====================================================================
Tag: <queryParser path="xxx"/>
Descrip: When the servlet receives a request (either through HTTP GET
or PUT), it packs up the parameters and passes them to this
stylesheet. Its job is to generate a structured text query
from the parameters, and also to specify the stylesheet that
will be used to format the results.
The path is interpreted relative to the servlet's base
directory.
See descriptive comments in queryParser.xsl for details.
-->
<queryParser path="style/sru/queryParser.xsl"/>
<!-- =====================================================================
Tag: <errorGen path="xxx"/>
Descrip: When an error occurs (such as an invalid query, work limit
exceeded, or an internal error), a stylesheet is used to
produce a nicely formatted page for the requestor.
This tag specifies the path to the stylesheet, relative to
the servlet base directory.
See detailed comments in errorGen.xsl for more info.
-->
<errorGen path="style/sru/errorGen.xsl"/>
<!-- =====================================================================
Tag: <stylesheetCache size="X" expire="Y">
Descrip: This attribute (if specified) overrides the defaults for
the size (number of entries) and expiration (in seconds) for
the stylesheet cache. Generally these need not be changed.
The cache contains compiled versions of stylesheets (query
parser, result formatter, etc.)
-->
<stylesheetCache size="10" expire="0"/>
<!-- =====================================================================
Tag: <dependencyChecking check="yes/no"/>
Descrip: Whenever consulting one of its internal caches, the servlet
can optionally check if the source file(s) have been changed
and if so ignore the cache entry and reload the file(s).
This hurts performance slightly, but makes testing and
development much easier.
Set this to "no" for a production system where every last
little bit of speed is critical. Otherwise, leave it "yes".
-->
<dependencyChecking check="yes"/>
<!-- =====================================================================
Tag: <reportLatency enable="yes/no"/>
Descrip: When set to "yes", the servlet will report how many
milliseconds were spent processing each request (regardless
of whether the request succeeded or produced an error page.)
The report is logged at the "info" level, so if the
<logging> level above is set to "warnings", "errors", or
"silent", then <reportLatency> will have no effect.
Set this to "yes" to gather detailed information on which
requests took longest to serve. Set it to "no" if you want
to avoid logging and don't need the information.
-->
<reportLatency enable="no"/>
<!-- =====================================================================
PASS-THROUGH TAGS
You may place any other tags you like, and they will be passed as
parameters to each stylesheet run by the servlet. Thus you can make
up your own system-wide parameters, put them below, and then every
stylesheet will be able to access them.
Examples: <mytag value="foo"/>
<othertag value="bar"/>
-->
<!-- Put pass-through tags here, if you need any. -->
</SRU-config>