forked from projectEndings/staticSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigTestWorthReading.xml
More file actions
41 lines (39 loc) · 1.59 KB
/
configTestWorthReading.xml
File metadata and controls
41 lines (39 loc) · 1.59 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://hcmc.uvic.ca/ns/staticSearch">
<params>
<searchFile>test/searchWorthReading.html</searchFile>
<versionFile>test/VERSION</versionFile>
<stemmerFolder>identity</stemmerFolder>
<recurse>true<!--Need to set recurse to true for the test--></recurse>
<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>test/test_stopwords.txt</stopwordsFile>
<dictionaryFile>xsl/english_words.txt</dictionaryFile>
<indentJSON>true</indentJSON>
<outputFolder>ssWorthReading</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="div[@class='l']" label="poetic lines"/>
<context match="span[@class='note']" label="notes"/>
</contexts>
<excludes>
<exclude type="index" match="html[not(descendant::meta[@name='Worth reading'][@content='true'])]"/>
<exclude type="filter" match="meta[@name='Worth reading']"/>
</excludes>
</config>