Skip to content

Commit 1c4fa01

Browse files
committed
Update upgrading guide for 2.2 final.
1 parent 2cbd83b commit 1c4fa01

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

data/upgrading.xml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<!-- $Id$ -->
23
<book>
34
<bookinfo>
@@ -39,9 +40,17 @@
3940
</procedure>
4041
</section>
4142
<section>
42-
<title>Upgrading to 2.2</title>
43+
<title>Upgrading to 2.2 final</title>
4344
<para>The 2.2 release is not binary compatible with the 1.4.x series. You need to
4445
backup/restore.</para>
46+
<para>2.2 introduces a <emphasis>new range index module</emphasis>. Old index definitions will still work though as we made sure to keep backwards
47+
compatible. If you would like to upgrade to the new index, check its <ulink url="newrangeindex.xml">documentation</ulink>.</para>
48+
<para>The XQuery engine has been updated to support the changed syntax for <emphasis>maps in XQuery 3.1</emphasis>. The query parser will still accept the
49+
old syntax for map constructors though (<code>map { x:= "y"}</code> instead of <code>map { x: "y" }</code> in XQuery 3.1), so old
50+
code should run without modifications. All map module functions from XQuery 3.1 are
51+
<ulink url="{fundocs}/view.html?uri=http://www.w3.org/2005/xpath-functions/map&amp;location=java:org.exist.xquery.functions.map.MapModule">available</ulink>.</para>
52+
<para>The signatures for some <emphasis>higher-order utility functions</emphasis> like fn:filter, fn:fold-left and fn:fold-right have changed as well. Please review your
53+
use of those functions. Also, fn:map is now called fn:for-each, though the old name is still accepted.</para>
4554
<para>The bundled Lucene has been upgraded from 3.6.1
4655
to 4.4 with this release. Depending on what Lucene
4756
analyzers you are using you need to change the
@@ -98,7 +107,7 @@
98107
</orderedlist>
99108
<para>You can use an XQuery to automatically apply a default permission to every collection and XQuery, and
100109
then change them manually for some collections or resources.</para>
101-
<programlisting language="xquery"><![CDATA[xquery version "3.0";
110+
<programlisting language="xquery">xquery version "3.0";
102111

103112
import module namespace dbutil="http://exist-db.org/xquery/dbutil";
104113

@@ -107,7 +116,7 @@ dbutil:find-by-mimetype(xs:anyURI("/db"), "application/xquery", function($resour
107116
}),
108117
dbutil:scan-collections(xs:anyURI("/db"), function($collection) {
109118
sm:chmod($collection, "rwxr-xr-x")
110-
})]]></programlisting>
119+
})</programlisting>
111120
</listitem>
112121
</varlistentry>
113122
<varlistentry>
@@ -153,11 +162,11 @@ dbutil:scan-collections(xs:anyURI("/db"), function($collection) {
153162
backwards compatibility, just edit the system-wide defaults in
154163
conf.xml:</para>
155164
<programlisting>
156-
<markup><![CDATA[<index>
157-
<fulltext attributes="false" default="none">
158-
<exclude path="/auth"/>
159-
</fulltext>
160-
</index>]]></markup>
165+
<markup>&lt;index&gt;
166+
&lt;fulltext attributes="false" default="none"&gt;
167+
&lt;exclude path="/auth"/&gt;
168+
&lt;/fulltext&gt;
169+
&lt;/index&gt;</markup>
161170
</programlisting>
162171
</listitem>
163172
</varlistentry>
@@ -166,7 +175,7 @@ dbutil:scan-collections(xs:anyURI("/db"), function($collection) {
166175
<listitem>
167176
<para>Validation of XML documents during storage is now <emphasis>turned
168177
off by default</emphasis> in <filename>conf.xml</filename>:</para>
169-
<synopsis language="xml"><![CDATA[<validation mode="no">]]></synopsis>
178+
<synopsis language="xml">&lt;validation mode="no"&gt;</synopsis>
170179
<para>The previous <option>auto</option> setting was apparently too
171180
confusing for new users who did not know what to do if eXist-db refused
172181
to store a document due to failing validation. If you are familiar

0 commit comments

Comments
 (0)