Skip to content

Commit e631e1c

Browse files
committed
[ignore] Add an example as requested by @line-o review concerns
1 parent d2b0412 commit e631e1c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<analyzer id="my-custom-analyzer" class="tld.org.CustomAnalyzer">
2+
<param name="minimumTermLength" type="int" value="2" />
3+
<param name="punctuationDictionary" type="char[]">
4+
<value>'</value>
5+
<value>-</value>
6+
<value>’</value>
7+
</param>
8+
</analyzer>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,11 @@
354354
<programlisting language="xml" xlink:href="listings/listing-30.xml"/>
355355

356356
<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+
357362

358363
<note>
359364
<para>Using the Snowball analyzer requires you to add additional libraries to

0 commit comments

Comments
 (0)