-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collection.xconf
32 lines (30 loc) · 2.43 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
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:tei="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dbk="http://docbook.org/ns/docbook">
<fulltext default="none" attributes="false"/>
<lucene>
<module uri="http://teipublisher.com/index" prefix="nav" at="index.xql"/>
<text match="/tei:TEI/tei:text">
<field name="title" expression="nav:get-metadata(ancestor::tei:TEI, 'title')"/>
<field name="author" expression="nav:get-metadata(ancestor::tei:TEI, 'author')"/>
<field name="language-id" expression="nav:get-metadata(ancestor::tei:TEI, 'language-id')"/>
<field name="language" expression="nav:get-metadata(ancestor::tei:TEI, 'language')"/>
<field name="date" expression="nav:get-metadata(ancestor::tei:TEI, 'date')" type="xs:date"/>
<field name="file" expression="util:document-name(.)"/>
<field name="number-in-volume" expression="nav:get-metadata(ancestor::tei:TEI, 'number-in-volume')" type="xs:integer"/>
<facet dimension="date" expression="nav:get-metadata(ancestor::tei:TEI, 'date')" hierarchical="yes"/>
<facet dimension="genre" expression="nav:get-metadata(ancestor::tei:TEI, 'genre')"/>
<facet dimension="keyword" expression="nav:get-metadata(ancestor::tei:TEI, 'keyword')"/>
<facet dimension="language" expression="nav:get-metadata(ancestor::tei:TEI, 'language')"/>
<facet dimension="language-id" expression="nav:get-metadata(ancestor::tei:TEI, 'language-id')"/>
<facet dimension="corpus" expression="'Dodis'"/>
<facet dimension="author-person" expression="nav:get-metadata(ancestor::tei:TEI, 'author-person')"/>
<facet dimension="author-org" expression="nav:get-metadata(ancestor::tei:TEI, 'author-org')"/>
<facet dimension="persons-mentioned" expression="nav:get-metadata(ancestor::tei:TEI, 'persons-mentioned')"/>
<facet dimension="places-mentioned" expression="nav:get-metadata(ancestor::tei:TEI, 'places-mentioned')"/>
<facet dimension="organizations-mentioned" expression="nav:get-metadata(ancestor::tei:TEI, 'organizations-mentioned')"/>
</text>
<text qname="tei:head"/>
</lucene>
</index>
</collection>