-
Notifications
You must be signed in to change notification settings - Fork 6
/
collection.xconf
24 lines (24 loc) · 1.28 KB
/
collection.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
<?xml version="1.0" encoding="UTF-8"?>
<collection xmlns="http://exist-db.org/collection-config/1.0">
<index 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>
<analyzer class="org.apache.lucene.analysis.core.KeywordAnalyzer" id="keyword"/>
<text index="no" qname="tei:div">
<!-- start required facets and fields -->
<facet dimension="hsg-category" expression="'department'"/>
<facet dimension="hsg-publication" expression="'timeline'"/>
<field if="@type eq 'section'" name="hsg-fulltext" store="no"/>
<field
expression="'/departmenthistory/timeline' || (if (@xml:id) then '/' || substring-after(./@xml:id, 'chapter_') else ())"
name="hsg-url"/>
<!-- end required facets and fields -->
</text>
</lucene>
</index>
</collection>