Two Search problems!
Hello!
I've found two problems in searches:
-
The Search Results page shows only the first 5 occurrences of the word searched in every section of the document. For example, if you search "Romeo" in http://teipublisher.com/exist/apps/tei-publisher/test/romeo_and_juliet.xml?odd=teipublisher.odd it gives just the first 5 results, because the document has only one section in the TOC. But even if the document has many sections, like http://teipublisher.com/exist/apps/tei-publisher/test/kant_rvernunft_1781.TEI-P5.xml?odd=dta.odd, a search for "niemals" gives 71 sections with results, but never more than 5 occurrences in every one.
-
The Search Results page shows 0 results when searching a text inside an element located elsewhere and retrieved to the actual page by the code you recommend in the FAQ, for example,
<elementSpec mode="change" ident="ref"> <model behaviour="note"> <param name="place" value="'margin'"/> <!-- Look up the note by xml:id --> <param name="content" value="id(substring-after(@target, '#'), root($parameters?root))/node()"/> </model> </elementSpec>
I am using this technique to link parallel texts (original ancient text and modern translation), using <anchor>
or <link>
.
Any idea?
Many thanks!