-
Notifications
You must be signed in to change notification settings - Fork 0
/
staticSearch-config.xml
45 lines (41 loc) · 1.77 KB
/
staticSearch-config.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://hcmc.uvic.ca/ns/staticSearch">
<params>
<searchFile>search.html</searchFile>
<versionFile>VERSION</versionFile>
<recurse>true<!--Need to set recurse to true for the test--></recurse>
<linkToFragmentId>true</linkToFragmentId>
<scrollToTextFragment>true</scrollToTextFragment>
<phrasalSearch>true</phrasalSearch>
<wildcardSearch>true</wildcardSearch>
<createContexts>true</createContexts>
<!--NOTE: If phrasalSearch is set to TRUE, then
maxContexts prop will be ignored-->
<maxKwicsToHarvest>3</maxKwicsToHarvest>
<maxKwicsToShow>3</maxKwicsToShow>
<totalKwicLength>15</totalKwicLength>
<kwicTruncateString>...</kwicTruncateString>
<verbose>false</verbose>
<stopwordsFile>../../rcb-manual-staticSearch-1.1/xsl/english_stopwords.txt</stopwordsFile>
<dictionaryFile>../../rcb-manual-staticSearch-1.1/xsl/english_words.txt</dictionaryFile>
<indentJSON>false</indentJSON>
<outputFolder>staticSearch</outputFolder>
</params>
<rules>
<rule weight="2"
match="h1 | h2"/>
<rule weight="0"
match="span[@class='lineNum']"/>
<rule weight="0"
match="script | style | aside | header"/>
</rules>
<contexts>
<context match="div[@class='l']" label="poetic lines"/>
<context match="table" label="table"/>
</contexts>
<excludes>
<!-- exclude the notes file -->
<exclude type="index" match="html[head/title[normalize-space(.)='Wax | Notes on staticSearch implementation']]"/>
<exclude type="index" match="html[head/title[normalize-space(.)='Search']]"/>
</excludes>
</config>