I've been experimenting with query weights and I have a question about
one of the side effects on the final number from cts:score.

The basic query I'm testing with does an or-query to search the entire
text with one score and then boosts the score if the term is found a
title or head element.  While experimenting with the weights I noticed
that the score difference between each item returned is drastically
smaller (which is fine) but, in some cases, more groups of items end
up having the same score (which is more of an issue).  As I increase
the weight of hits in the title or head elements, I'm finding that
more and more documents end up with the exact same score.

I'm not sure I understand why that is or how to balance it out.  Can
someone explain?

Thanks,
Mattio

I pasted the query I'm testing with below.

cts:or-query(
 (
   cts:and-query(
     (
       cts:word-query("arnold", (), 0.25),
       cts:word-query("biography", (), 0.25)
     ), ()
   ),
   cts:and-query(
     (
       cts:element-word-query((xs:QName("title"), xs:QName("head")),
"arnold", (), 1.5),
       cts:element-word-query((xs:QName("title"), xs:QName("head")),
"biography", (), 1.5)
     ), ()
   )
 )
)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to