-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_staticSearch.xml
More file actions
39 lines (39 loc) · 1.96 KB
/
Copy pathconfig_staticSearch.xml
File metadata and controls
39 lines (39 loc) · 1.96 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"?>
<?xml-model href="staticSearch/schema/staticSearch.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="staticSearch/schema/staticSearch.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<config xmlns="http://hcmc.uvic.ca/ns/staticSearch" version="2">
<params>
<searchPage file="products/benjonson/search.html"/>
<index recurse="true"/>
<!--stopwords/@file may need to be changed to use a file in /stopwords/-->
<stopwords file="staticSearch/stopwords/stopwords_en.txt"/>
<!--dictionary/@file may need to be changed to use a file in /dicts/-->
<dictionary file="staticSearch/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="1000" maxKwicsToShow="5" maxResults="3000"/>
<version file="gitHash.txt"/>
<output dir="staticSearch"/>
</params>
<rules>
<rule weight="3" match="h1"/>
<rule weight="2" match="h2"/>
<rule weight="0" match="script | style | nav | div[@class='breadcrumbs'] | footer | div[@class='headerWrapper']"/>
</rules>
<contexts><!--
<context match="article[ancestor::main[@class]]" label="Articles on poets"/>
<context match="div[parent::main[not(@class)]]" label="Site page content"/>-->
</contexts>
<!--<excludes>
<exclude match="meta[contains(@name,'Document type')]" type="filter"/>
<!-\- Exclude everything that isn't a post. -\->
<exclude type="index" match="html[not(descendant::nav[@class='crumbs'])]"/>
<exclude match="meta[contains-token(@class,'excludedMeta')]" type="filter"/>
</excludes>-->
</config>