Skip to content

Commit bf4a947

Browse files
authored
Merge pull request #640 from line-o/fix/618
[doc] remove legacy fulltext index from listings
2 parents 4d06731 + 4f4c772 commit bf4a947

File tree

11 files changed

+11
-48
lines changed

11 files changed

+11
-48
lines changed

src/main/xar-resources/collection.xconf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<collection xmlns="http://exist-db.org/collection-config/1.0">
22
<index xmlns:db5="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3-
<fulltext default="none" attributes="false"/>
43
<lucene>
54
<analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
65

src/main/xar-resources/data/beginners-guide-to-xrx-v4/listings/listing-6.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<collection xmlns="http://exist-db.org/collection-config/1.0">
22
<index xmlns:xs="http://www.w3.org/2001/XMLSchema">
3-
<!-- Disable the standard full text index -->
4-
<fulltext default="none" attributes="false"/>
53
<!-- Lucene index configuration -->
64
<lucene>
75
<!-- Use the standard analyzer will ignore stopwords like 'the', 'and' -->
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<modules>
22
<module id="ngram-index" class="org.exist.indexing.ngram.NGramIndex" file="ngram.dbx" n="3"/>
33
<!-- <module id="spatial-index" class="org.exist.indexing.spatial.GMLHSQLIndex" connectionTimeout="10000" flushAfter="300" /> -->
4-
<!-- The full text index is always required and should not be disabled. We still have some dependencies on this index in the database core. These will be removed once the redesign has been completed. -->
5-
<module id="ft-legacy-index" class="org.exist.fulltext.FTIndex"/>
64
</modules>

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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>Configuring Database Indexes</title>
6-
<date>2Q19</date>
6+
<date>2Q21</date>
77
<keywordset>
88
<keyword>application-development</keyword>
99
</keywordset>
@@ -53,7 +53,7 @@
5353
<para> <emphasis> <link xlink:href="lucene">Full Text Indexes</link>
5454
</emphasis>: This full text indexing module features faster and customizable
5555
full text indexing by transparently integrating Lucene into the XQuery engine.
56-
Prefer this index over the Legacy Full Text Index. </para>
56+
</para>
5757
</listitem>
5858
<listitem>
5959
<para> <emphasis> <link xlink:href="ngram">NGram Indexes</link> </emphasis>:
@@ -174,16 +174,14 @@
174174
types of indexes: full text, range and ngram.</para>
175175

176176
<para>If the document to be indexed uses namespaces, you should add a
177-
<literal>xmlns</literal> declaration for each of the required namespaces to the
178-
<tag>index</tag> element:</para>
177+
<literal>xmlns</literal> declaration for each of the required namespaces:</para>
179178

180179
<programlisting language="xml" xlink:href="listings/listing-4.xml"/>
181180
<para>The example configuration above creates two indexes on a collection of atom
182181
documents. The two elements which should be indexed are both in the
183182
<literal>atom</literal> namespace and we therefore need to declare a mapping for
184-
this namespace. Please note that the <literal>xmlns</literal> namespace declarations
185-
have to be specified on the <tag>index</tag> element, not the <tag>create</tag> or
186-
<tag>fulltext</tag> elements.</para>
183+
this namespace. Here, the namespace mapping is placed on the <tag>index</tag>
184+
element, but it can appear anywhere in the configuration document.</para>
187185
</sect2>
188186
</sect1>
189187

src/main/xar-resources/data/indexing/listings/listing-4.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<collection xmlns="http://exist-db.org/collection-config/1.0">
22
<index xmlns:atom="http://www.w3.org/2005/Atom">
3-
<fulltext default="none" attributes="no">
4-
<create qname="atom:title"/>
5-
</fulltext>
3+
<lucene>
4+
<text qname="atom:title"/>
5+
</lucene>
66
<range>
77
<create qname="atom:id" type="xs:string"/>
88
</range>
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<modules>
22
<module id="ngram-index" class="org.exist.indexing.ngram.NGramIndex" file="ngram.dbx" n="3"/>
3-
<!-- The full text index is always required and should not be disabled. We still have some dependencies on this index in the database core. These will be removed once the redesign has been completed. -->
4-
<module id="ft-legacy-index" class="org.exist.fulltext.FTIndex"/>
53
</modules>

src/main/xar-resources/data/lucene/listings/listing-3.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:xlink="http://www.w3.org/1999/xlink">
55
<info>
66
<title>Full Text Index</title>
7-
<date>1Q20</date>
7+
<date>2Q21</date>
88
<keywordset>
99
<keyword>indexing</keyword>
1010
</keywordset>
@@ -49,11 +49,7 @@
4949
xlink:href="indexing#idxconf">documentation</link>. For example:</para>
5050

5151
<example>
52-
<title>collection.xconf for version 2.2</title>
53-
<programlisting language="xml" xlink:href="listings/listing-3.xml"/>
54-
</example>
55-
<example>
56-
<title>collection.xconf for version 3.0 and above.</title>
52+
<title>collection.xconf (for version 3.0 and above).</title>
5753
<programlisting language="xml" xlink:href="listings/listing-4.xml"/>
5854
</example>
5955

src/main/xar-resources/data/versioning/listings/listing-1.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<collection xmlns="http://exist-db.org/collection-config/1.0">
2-
<index>
3-
<fulltext default="none" attributes="no">
4-
</fulltext>
5-
</index>
2+
<index/>
63
<triggers>
74
<trigger event="create,delete,update,copy,move" class="org.exist.versioning.VersioningTrigger">
85
<parameter name="overwrite" value="yes"/>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@
134134
<literal>conf.xml</literal>. Add a <tag>custom-filter</tag> child tag to the
135135
<tag>serializer</tag> element and set its <literal>class</literal> attribute to
136136
<literal>org.exist.versioning.VersioningFilter</literal>:</para>
137-
<programlisting language="xml" xlink:href="listings/listing-2.xml"/>
138137
<para>eXist must be restarted for the versioning filter to become active.</para>
139138
</sect2>
140139
</sect1>

0 commit comments

Comments
 (0)