-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconfigTest.xml
50 lines (46 loc) · 1.92 KB
/
configTest.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
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://hcmc.uvic.ca/ns/staticSearch" version="1">
<params>
<searchFile>test/search.html</searchFile>
<versionFile>test/VERSION</versionFile>
<recurse>true<!--Need to set recurse to true for the test--></recurse>
<linkToFragmentId>true</linkToFragmentId>
<scrollToTextFragment>false</scrollToTextFragment>
<phrasalSearch>true</phrasalSearch>
<wildcardSearch>true</wildcardSearch>
<createContexts>true</createContexts>
<resultsPerPage>5</resultsPerPage>
<minWordLength>2</minWordLength>
<!--NOTE: If phrasalSearch is set to TRUE, then
maxContexts prop will be ignored-->
<maxKwicsToHarvest>5</maxKwicsToHarvest>
<maxKwicsToShow>5</maxKwicsToShow>
<totalKwicLength>15</totalKwicLength>
<kwicTruncateString>...</kwicTruncateString>
<verbose>false</verbose>
<stopwordsFile>test/test_stopwords.txt</stopwordsFile>
<dictionaryFile>xsl/english_words.txt</dictionaryFile>
<indentJSON>true</indentJSON>
<outputFolder>ssTest</outputFolder>
</params>
<rules>
<rule weight="2"
match="h1 | h2"/>
<rule weight="0"
match="span[@class='lineNum']"/>
<rule weight="0"
match="script | style"/>
</rules>
<contexts>
<context match="blockquote" label="Quotations"/>
<context match="div[@class='l']"/>
<context match="span[@class='note'] | *[contains-token(@class,'sidenotes')]"
label="Notes"/>
<context match="cite" label="Citations"/>
<context match="p[contains-token(@class,'citation')]" label="Citations"/>
</contexts>
<excludes>
<exclude type="index" match="html[@id='excluded']"/>
<exclude match="meta[contains-token(@class,'excludedMeta')]" type="filter"/>
</excludes>
</config>