-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from HistoryAtState/new-indexes
WIP: Apply new indexes
- Loading branch information
Showing
6 changed files
with
78 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ build/* | |
.existdb.json | ||
.DS_Store | ||
expath-pkg.xml | ||
repo.xml | ||
repo.xml | ||
.idea/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<collection xmlns="http://exist-db.org/collection-config/1.0"> | ||
<index xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:frus="http://history.state.gov/frus/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 qname="trips" index="no"> | ||
<!-- start required facets and fields --> | ||
<facet dimension="hsg-category" expression="'department'"/> | ||
<facet dimension="hsg-publication" expression="'travels'"/> | ||
<field name="hsg-fulltext" store="no" expression="trip/name, trip/country, trip/remarks, trip/locale"/> | ||
<field name="hsg-url" expression="'/departmenthistory/travels/president/' || util:document-name(.) => substring-before('.xml')"/> | ||
<!-- end required facets and fields --> | ||
</text> | ||
</lucene> | ||
<range> | ||
<create match="//trip"> | ||
<field name="trip-who" match="@who" type="xs:string"/> | ||
</create> | ||
<create qname="country" type="xs:string"/> | ||
|
||
</range> | ||
</index> | ||
</collection> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<collection xmlns="http://exist-db.org/collection-config/1.0"> | ||
<index xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<range> | ||
<create match="//president"> | ||
<field name="president-id" match="id" type="xs:string"/> | ||
</create> | ||
</range> | ||
</index> | ||
</collection> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<collection xmlns="http://exist-db.org/collection-config/1.0"> | ||
<index xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:frus="http://history.state.gov/frus/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 qname="trips" index="no"> | ||
<!-- start required facets and fields --> | ||
<facet dimension="hsg-category" expression="'department'"/> | ||
<facet dimension="hsg-publication" expression="'travels'"/> | ||
<field name="hsg-fulltext" store="no" expression="trip/name, trip/country, trip/remarks, trip/locale"/> | ||
<field name="hsg-url" expression="'/departmenthistory/travels/secretary/' || util:document-name(.) => substring-before('.xml')"/> | ||
<!-- end required facets and fields --> | ||
</text> | ||
</lucene> | ||
<range> | ||
<create match="//trip"> | ||
<field name="trip-who" match="@who" type="xs:string"/> | ||
</create> | ||
<create qname="country" type="xs:string"/> | ||
</range> | ||
</index> | ||
</collection> |