-
Notifications
You must be signed in to change notification settings - Fork 8
/
president-travels.xconf
32 lines (31 loc) · 1.5 KB
/
president-travels.xconf
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
<?xml version="1.0" encoding="UTF-8"?>
<collection xmlns="http://exist-db.org/collection-config/1.0">
<index xmlns:frus="http://history.state.gov/frus/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<lucene>
<analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer">
<!-- Specify stop words - or remove them entirely -->
<param name="stopwords" type="org.apache.lucene.analysis.util.CharArraySet">
<!--<value>the</value>-->
</param>
</analyzer>
<text index="no" qname="trips">
<!-- start required facets and fields -->
<facet dimension="hsg-category" expression="'department'"/>
<facet dimension="hsg-publication" expression="'travels'"/>
<field expression="trip/name, trip/country, trip/remarks, trip/locale"
name="hsg-fulltext" store="no"/>
<field
expression="'/departmenthistory/travels/president/' || util:document-name(.) => substring-before('.xml')"
name="hsg-url"/>
<!-- end required facets and fields -->
</text>
</lucene>
<range>
<create match="//trip">
<field match="@who" name="trip-who" type="xs:string"/>
</create>
<create qname="country" type="xs:string"/>
</range>
</index>
</collection>