|
4 | 4 | xmlns:xlink="http://www.w3.org/1999/xlink"> |
5 | 5 | <info> |
6 | 6 | <title>Full Text Index</title> |
7 | | - <date>2Q21</date> |
| 7 | + <date>3Q21</date> |
8 | 8 | <keywordset> |
9 | 9 | <keyword>indexing</keyword> |
10 | 10 | </keywordset> |
|
314 | 314 | These parameters must match a <code>Constructor</code> signature on the |
315 | 315 | underlying Java class of the Analyzer, please review the Javadoc for the |
316 | 316 | Analyzer that you wish to configure.</para> |
317 | | - <para>We currently support passing the following types: </para> |
| 317 | + <para>We currently support passing the following types:</para> |
318 | 318 | <itemizedlist> |
319 | 319 | <listitem> |
320 | | - <para> <code>String</code> (default if no type is specified)</para> |
| 320 | + <para><code>java.lang.String</code> (default if no type is specified)</para> |
321 | 321 | </listitem> |
322 | 322 | <listitem> |
323 | | - <para> <code>java.io.FileReader</code> (since Lucene 4) or <code>file</code> |
| 323 | + <para><code>java.lang.String[]</code> (since eXist-db 5.4.0)</para> |
| 324 | + </listitem> |
| 325 | + <listitem> |
| 326 | + <para><code>char[]</code> (since eXist-db 5.4.0)</para> |
| 327 | + </listitem> |
| 328 | + <listitem> |
| 329 | + <para><code>java.io.FileReader</code> or <code>file</code> |
324 | 330 | </para> |
325 | 331 | </listitem> |
326 | 332 | <listitem> |
327 | | - <para> <code>java.lang.Boolean</code> or <code>boolean</code> </para> |
| 333 | + <para><code>java.lang.Boolean</code> or <code>boolean</code></para> |
328 | 334 | </listitem> |
329 | 335 | <listitem> |
330 | | - <para> <code>java.lang.Integer</code> or <code>int</code> </para> |
| 336 | + <para><code>java.lang.Integer</code> or <code>int</code></para> |
331 | 337 | </listitem> |
332 | 338 | <listitem> |
333 | | - <para> <code>org.apache.lucene.analysis.util.CharArraySet</code> or |
334 | | - <code>set</code> </para> |
| 339 | + <para><code>org.apache.lucene.analysis.util.CharArraySet</code> or |
| 340 | + <code>set</code></para> |
335 | 341 | </listitem> |
336 | 342 | <listitem> |
337 | | - <para> <code>java.lang.reflect.Field</code> </para> |
| 343 | + <para><code>java.lang.reflect.Field</code></para> |
338 | 344 | </listitem> |
339 | 345 | </itemizedlist> |
340 | 346 | <para> The value <link condition="_blank" |
|
348 | 354 | <programlisting language="xml" xlink:href="listings/listing-30.xml"/> |
349 | 355 |
|
350 | 356 | <programlisting language="xml" xlink:href="listings/listing-31.xml"/> |
| 357 | + |
| 358 | + <para>For instance to construct your custom analyzer you might use |
| 359 | + something like:</para> |
| 360 | + <programlisting language="xml" xlink:href="listings/listing-311.xml"/> |
| 361 | + |
351 | 362 |
|
352 | 363 | <note> |
353 | 364 | <para>Using the Snowball analyzer requires you to add additional libraries to |
|
0 commit comments