-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathconfig_documentation_v1.xml
More file actions
39 lines (34 loc) · 1.38 KB
/
config_documentation_v1.xml
File metadata and controls
39 lines (34 loc) · 1.38 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
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://hcmc.uvic.ca/ns/staticSearch" version="1">
<params>
<searchFile>docs/index.html</searchFile>
<versionFile>test/VERSION</versionFile>
<stemmerFolder>en</stemmerFolder>
<recurse>false</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>10</maxKwicsToShow>
<totalKwicLength>15</totalKwicLength>
<kwicTruncateString>...</kwicTruncateString>
<stopwordsFile>xsl/english_stopwords.txt</stopwordsFile>
<dictionaryFile>xsl/english_words.txt</dictionaryFile>
<outputFolder>search</outputFolder>
</params>
<rules>
<rule weight="2"
match="h1 | h2"/>
<!--ignore the TOC-->
<rule weight="0"
match="div[contains-token(@class,'tei_front')]"/>
<!--Don't index codeblocks in table cells-->
<rule weight="0" match="td/pre"/>
</rules>
<excludes>
<!--Ignore the master SS doc from the search-->
<exclude type="index" match="html[matches(base-uri(/),'staticSearch.html$')]"/>
</excludes>
</config>