-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathconfigTest.xml
More file actions
52 lines (52 loc) · 2.09 KB
/
configTest.xml
File metadata and controls
52 lines (52 loc) · 2.09 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
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<!--Configuration file file:/Users/takeda/projects/staticSearch/configTest.xml converted to version 2 2025-02-08.-->
<config xmlns="http://hcmc.uvic.ca/ns/staticSearch" version="2">
<params>
<searchPage file="test/search.html"/>
<index recurse="true"/>
<stopwords file="test/test_stopwords.txt"/>
<dictionary file="dicts/words_en.txt"/>
<scoringAlgorithm name="raw"/>
<stemmer dir="stemmers/en/"/>
<tokenizer minWordLength="2"/>
<createContexts create="true"
phrasalSearch="true"
wildcardSearch="true"
maxKwicLength="15"
kwicTruncateString="..."/>
<results resultsPerPage="5" maxKwicsToShow="5" maxResults="1000"/>
<version file="test/VERSION"/>
<output dir="ssTest"/>
</params>
<rules>
<rule weight="2" match="h1 | h2"/>
<rule weight="0" match="span[@class='lineNum']"/>
<rule weight="0" match="script | style"/>
<rule weight="10" match="span[@class='weighty']"/>
<rule weight="5" match="td/span"/>
</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>
<filters>
<filter filterName="Worth reading">
<span xmlns="http://www.w3.org/1999/xhtml">
<i>Really</i> worth reading:
</span>
</filter>
<filter filterName="Random nonsense">
<span xmlns="http://www.w3.org/1999/xhtml" lang="en">
<span style="font-variant: small-caps;">Random Piffle</span>
</span>
</filter>
</filters>
</config>