On Sun, 2013-05-12 at 10:41 +0200, Christian GrĂ¼n wrote:
Hi Liam,
The following query gives me no results:
I rebuilt the full text index and now get results. Yay! :-) To be sure, I re-indexed the document and rebuilt all the indexes.
However,
for $city in ("Paris", "Cambridge", "London", "Oxford", "boy") return ($city, count(/dictionary/letter/entry[.//text() contains text {$city}]), "
")
gives me Paris 1 Cambridge 0 London 0 Oxford 0 boy 174
but
for $city in ("Paris", "Cambridge", "London", "Oxford", "boy") return ($city, count(/dictionary/letter/entry[. contains text {$city}]), "
")
gives me Paris 2485 Cambridge 1132 London 2444 Oxford 1863 boy 180
(changing .//text() to . in the ft expression).
The higher figures are more likely to be correct.
The actual document (50MBytes) is at http://words.fromoldbooks.org/xml/Chalmers-Biography/with-sources.xml
Liam