File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
src/main/xar-resources/data Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ language: java
44
55jdk :
66 - oraclejdk8
7- - oraclejdk9
7+ - oraclejdk11
88
9- script : mvn -B test package
9+ script :
10+ - mvn -B test package
11+ - mvn validate
1012
1113notifications :
1214 hipchat : ec8fcfa661addc56a361a8ef536320@integrations
Original file line number Diff line number Diff line change 33 schematypens =" http://purl.oclc.org/dsdl/schematron" ?><article xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" version =" 5.0" >
44 <info >
55 <title >Full Text Index</title >
6- <date >1Q18 </date >
6+ <date >4Q18 </date >
77 <keywordset >
88 <keyword >indexing</keyword >
99 </keywordset >
506506 <para >The field indexes are not configured via <literal >collection.xconf</literal >. Instead we add fields programmatically from an XQuery (which
507507 could be run via a trigger):</para >
508508 <programlisting language =" xquery" xlink : href =" listings/listing-49.txt" />
509-
509+
510510 <para >The <literal >store</literal > attribute indicates that the fields content should be stored as a string. Without this attribute, the content
511511 will be indexed for search, but you won't be able to retrieve the contents. </para >
512512 <para >To get the contents of a field, use the <literal >ft:get-field</literal > function:</para >
513513 <programlisting language =" xquery" >ft:get-field("/db/demo/test.xml", "title")</programlisting >
514-
514+
515515 <para >To query this index, use the <literal >ft:search</literal > function:</para >
516516 <programlisting language =" xquery" >ft:search("/db/demo/test.xml", "title:indexing and author:me")</programlisting >
517-
517+
518518 <para >Custom field indexes are automatically deleted when their parent document is removed. If you want to update fields without removing the
519519 document, you need to delete the old fields first though. This can be done using the <literal >ft:remove-index</literal > function:</para >
520520 <programlisting language =" xquery" >ft:remove-index("/db/demo/test.xml")</programlisting >
Original file line number Diff line number Diff line change 166166 <varlistentry >
167167 <term ><code >%test:name</code ></term >
168168 <listitem >
169- <para >Povide a more descriptive name for your test than the XQuery function name, which is the default.</para >
169+ <para >Provide a more descriptive name for your test than the XQuery function name, which is the default.</para >
170170 </listitem >
171171 </varlistentry >
172172 <varlistentry >
You can’t perform that action at this time.
0 commit comments