Hi Christian,

This is the result of the query:

<document uri="file:/Users/wiardvasen/Desktop/brievenvangogh/let001.xml"/>
<document uri="file:/Users/wiardvasen/Desktop/brievenvangogh/let002.xml"/>
<document uri="file:/Users/wiardvasen/Desktop/brievenvangogh/let003.xml"/>
<document uri="file:/Users/wiardvasen/Desktop/brievenvangogh/let004.xml"/>
<document uri="file:/Users/wiardvasen/Desktop/brievenvangogh/let005.xml">
  <hit score="0.03590675482297878">
    <ab xmlns="http://www.tei-c.org/ns/1.0" rend="indent">How is your boarding-house? Is it still to your liking? That’s important. Above all, you must write more about the kind of things you see. Sunday a fortnight ago I was in Amsterdam to see an exhibition of the paintings going to Vienna from here.<anchor n="6" xml:id="note-t-6"/>It was very interesting, and I’m curious<pb f="1r" n="4" xml:id="pb-trans-1r-4" facs="#zone-pb-1r-4"/>as to the impression the Dutch will make in Vienna.</ab>
  </hit>
</document>

And this is the query:

let $range := 1 to 5
for $doc in collection('christian')
let $uri := base-uri($doc),
   $num := substring($uri, string-length($uri) - 6, 3)
where $num castable as xs:integer
 and xs:integer($num) = $range
return <document uri='{$uri}'>{
 for $n score $s in $doc//*[text() contains text 'above']
 return <hit score='{$s}'>{ $n }</hit>
}</document>

Kind regards,

Wiard

2011/4/5 Christian Grün <christian.gruen@gmail.com>
Dear Wiard,

what does the query info tell you? Just copy&paste the info to this list.

Thanks
Christian
___________________________


On Tue, Apr 5, 2011 at 3:04 PM, Wiard Vasen <wiard.vasen@gmail.com> wrote:
Dear Christian,

When I initialized the database I marked in 'Full Text' properties the TF / IDF checkbox.
So, I think that 'score'  in the query gives this score back.

Do you think I am right?

Thanks in advance for your answer.

Kind regards,

Wiard