Skip to content

Commit 1f42d24

Browse files
committed
Replaced some 'ulink' elements pointing within the document with 'xref'
elements.
1 parent bccc3a1 commit 1f42d24

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

data/lucene.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ order by ft:score($sect) descending return $sect</synopsis>
405405
<para>Sometimes you may want to define different Lucene indexes on the same set of elements, e.g.
406406
to use a different analyzer. eXist-db allows to name a certain index using the <option>field</option>
407407
attribute:</para>
408-
<synopsis language="xquery"><![CDATA[<text field="title" qname="title" analyzer="en"/>]]></synopsis>
409-
<para>Such an index is called <option>named index</option>. See <ulink url="#query-a-named-index">Query a Named Index</ulink> on how to query the
410-
<option>named indexes</option>.</para>
408+
<synopsis language="xquery">&lt;text field="title" qname="title" analyzer="en"/&gt;</synopsis>
409+
<para>Such an index is called <option>named index</option>. See <xref linkend="query-a-named-index"/> on how to query the
410+
<option>named indexes</option>.</para>
411411
</section>
412412
</section>
413413
<section>
@@ -438,7 +438,7 @@ return $m</programlisting>
438438
module.</para>
439439
<section id="query-a-named-index">
440440
<title>Query a Named Index</title>
441-
<para>To query a named index (see <ulink url="#named-indexes">Defining Fields</ulink>), use the <function>ft:query-field($fieldName, $query)</function> instead of
441+
<para>To query a named index (see <xref linkend="named-indexes"/>), use the <function>ft:query-field($fieldName, $query)</function> instead of
442442
<function>ft:query</function>:</para>
443443
<synopsis language="xquery">ft:query-field("title", "xml")</synopsis>
444444
<para>
@@ -704,11 +704,11 @@ return
704704
a document, containing information which does not exist in the XML as such.</para>
705705
<para>The field indexes are not configured via <filename>collection.xconf</filename>. Instead we add
706706
fields programmatically from an XQuery (which could be run via a trigger):</para>
707-
<programlisting language="xquery"><![CDATA[ft:index("/db/demo/test.xml", <doc>
708-
<field name="title" store="yes">Indexing</field>
709-
<field name="author" store="yes">Me</field>
710-
<field name="date" store="yes">2013</field>
711-
</doc>)]]></programlisting>
707+
<programlisting language="xquery">ft:index("/db/demo/test.xml", &lt;doc&gt;
708+
&lt;field name="title" store="yes"&gt;Indexing&lt;/field&gt;
709+
&lt;field name="author" store="yes"&gt;Me&lt;/field&gt;
710+
&lt;field name="date" store="yes"&gt;2013&lt;/field&gt;
711+
&lt;/doc&gt;)</programlisting>
712712
<para>The <option>store</option> attribute indicates that the fields content should be stored as a string.
713713
Without this attribute, the content will be indexed for search, but you won't be able to retrieve the contents.
714714
</para>
@@ -722,4 +722,4 @@ return
722722
<synopsis language="xquery">ft:remove-index("/db/demo/test.xml")</synopsis>
723723
</section>
724724
</chapter>
725-
</book>
725+
</book>

0 commit comments

Comments
 (0)