Skip to content

Commit 7ff4ab1

Browse files
committed
Merge remote-tracking branch 'upstream/master' into props_and_sync
2 parents e06fb0a + 0018cea commit 7ff4ab1

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
//mods:mods[mods:name[@type = "personal"]
2-
[mods:namePart = "Dennis Ritchie"]]
1+
//mods:mods[mods:name[@type = "personal"][mods:namePart = "Dennis Ritchie"]]
32
[mods:originInfo/mods:dateIssued = "1979"]
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<collection xmlns="http://exist-db.org/collection-config/1.0">
2-
<!-- from Tamboti -->
33
<index xmlns:mods="http://www.loc.gov/mods/v3">
4-
<lucene>
5-
<text qname="mods:title"/>
6-
</lucene>
74
<!-- Range indexes -->
85
<range>
96
<create qname="mods:namePart" type="xs:string" case="no"/>
107
<create qname="mods:dateIssued" type="xs:string"/>
118
<create qname="@ID" type="xs:string"/>
129
</range>
1310
</index>
14-
</collection>
11+
</collection>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
declare namespace mods="http://www.loc.gov/mods/v3";
22
//mods:mods[mods:name/mods:namePart = "Dennis Ritchie"],
33
//mods:mods[mods:originInfo/mods:dateIssued = "1978"],
4-
//mods:mods[mods:name/mods:namePart = "Dennis Ritchie"]
5-
[mods:originInfo/mods:dateIssued = "1978"]
4+
//mods:mods[mods:name/mods:namePart = "Dennis Ritchie"][mods:originInfo/mods:dateIssued = "1978"]
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
//mods:mods[mods:name[@type = "personal"]
2-
[mods:namePart = "Dennis Ritchie"]
1+
//mods:name[@type = "personal"][mods:namePart = "Dennis Ritchie"]

src/main/xar-resources/data/newrangeindex/newrangeindex.xml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
<?xml-model href="http://docbook.org/xml/5.0/rng/docbook.rng"
22
schematypens="http://relaxng.org/ns/structure/1.0"?><?xml-model href="http://docbook.org/xml/5.0/rng/docbook.rng" type="application/xml"
33
schematypens="http://purl.oclc.org/dsdl/schematron"?>
4-
<article version="5.0" xmlns="http://docbook.org/ns/docbook"
5-
xmlns:xlink="http://www.w3.org/1999/xlink">
4+
<article xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
65
<info>
76
<title>Range Index</title>
8-
<date>2Q19</date>
7+
<date>4Q20</date>
98
<keywordset>
109
<keyword>indexing</keyword>
1110
</keywordset>
1211
</info>
1312

1413
<!-- ================================================================== -->
1514

16-
<para>eXist (version 2.2 and above) includes a super fast modularized range index based on
15+
<para>eXist-db includes a super fast modularized range index based on
1716
Apache Lucene. This article describes eXist-db's range index.</para>
18-
<para>There is also an <link xlink:href="oldrangeindex">older version of the range index</link>,
19-
which is kept for compatibility reasons. Usage of this range index is discouraged.</para>
2017

2118
<!-- ================================================================== -->
2219

@@ -87,8 +84,7 @@
8784
compare strings ignoring accents or case, you can define your index as follows: </para>
8885

8986
<programlisting language="xml" xlink:href="listings/listing-7.txt"/>
90-
<para> Please refer to the <link condition="_blank"
91-
xlink:href="http://userguide.icu-project.org/collation/concepts">ICU
87+
<para> Please refer to the <link condition="_blank" xlink:href="http://userguide.icu-project.org/collation/concepts">ICU
9288
documentation</link> (which is used by eXist) for more information on collations,
9389
strength, etc. </para>
9490
</sect2>
@@ -170,22 +166,28 @@
170166
<para>The following optional attributes can be specified on a <code>condition</code>: </para>
171167
<variablelist>
172168
<varlistentry>
173-
<term><code>operator="eq|ne|lt|gt|le|ge|starts-with|ends-with|contains|matches"</code></term>
169+
<term>
170+
<code>operator="eq|ne|lt|gt|le|ge|starts-with|ends-with|contains|matches"</code>
171+
</term>
174172
<listitem>
175173
<para>Specifies the operator for the comparison. <code>matches</code>
176174
supports Java regular expressions.</para>
177175
<para>Default is <code>eq</code>.</para>
178176
</listitem>
179177
</varlistentry>
180178
<varlistentry>
181-
<term><code>case="yes|no"</code></term>
179+
<term>
180+
<code>case="yes|no"</code>
181+
</term>
182182
<listitem>
183183
<para>Turns case sensitivity on or off for string comparisons. </para>
184184
<para>Default is <code>yes</code>.</para>
185185
</listitem>
186186
</varlistentry>
187187
<varlistentry>
188-
<term><code>numeric="yes|no"</code></term>
188+
<term>
189+
<code>numeric="yes|no"</code>
190+
</term>
189191
<listitem>
190192
<para>Turns numeric comparison on or off for equality and ordinal
191193
comparisons (<code>eq, ne, lt, gt, le, ge</code>). When enabled, 01.0
@@ -246,8 +248,7 @@
246248
<sect1 xml:id="comparison-range-index">
247249
<title>Comparison with the old range index</title>
248250

249-
<para>eXist also has an older version of the range index on board (see <link
250-
xlink:href="oldrangeindex">old range index</link>). Compared to this newer version it
251+
<para>eXist also has an older version of the range index on board (see <link xlink:href="oldrangeindex">old range index</link>). Compared to this newer version it
251252
has three main issues:</para>
252253
<orderedlist>
253254
<listitem>
@@ -294,4 +295,4 @@
294295
<para>The old range index is still supported to allow existing applications to run
295296
unchanged.</para>
296297
</sect1>
297-
</article>
298+
</article>

0 commit comments

Comments
 (0)