Skip to content

Commit 73d5223

Browse files
authored
Merge pull request #274 from sten1ee/patch-1
Update lucene.xml
2 parents 2e836f1 + de92b0e commit 73d5223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@
122122
<para>As a shortcut, you can use a <literal>match</literal> attribute with a wildcard:</para>
123123
<programlisting language="xml">&lt;text match="//SPEECH/*"/&gt;</programlisting>
124124
<para>This will create a separate index on each child element of SPEECH it encounters. Please note that the argument to match is a simple path
125-
pattern, not a full XPath expression. It only allows <code>/</code> and <code>//</code> to denote child or descendant steps, plus the wildcard
126-
<code>*</code> to match an arbitrary element.</para>
125+
pattern, not a full XPath expression. For the time being, it only allows <code>/</code> and <code>//</code> to denote child or descendant steps;
126+
the wildcard <code>*</code> to match an arbitrary element, plus matching a single attribute's value, e.g. <code>foo[@bar = 'xyz']</code></para>
127127
<para>As explained above, you have to figure out which parts of your document will likely be interesting as context for a full text query. The
128128
full text index works best if the context isn't too narrow. For example, if you have a document structure with section <tag>div</tag>s,
129129
headings and paragraphs, you would probably want to create an index on the <tag>div</tag>s and maybe on the headings, so the user can
@@ -519,4 +519,4 @@
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>
521521
</sect1>
522-
</article>
522+
</article>

0 commit comments

Comments
 (0)