File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/xar-resources/data/lucene Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 122122 <para >As a shortcut, you can use a <literal >match</literal > attribute with a wildcard:</para >
123123 <programlisting language =" xml" >< text match="//SPEECH/*"/> </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
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 >
You can’t perform that action at this time.
0 commit comments