Mattio-
Just a note- if you're using 3.2, you might try getting this functionality
with fields. Fields let you assign relative weights on an element-by-element
basis. That is, you could configure a field (in the database admin
interface) to include the full text element(s) with a weight of 0.25 and the
the title and head elements each to have a weight of 1.5. Then do a single
cts:field-word-query.

If your configuration and your data support this approach, it might work
well for you-
Frank


On 7/6/07 8:52 AM, "Mattio Valentino" <[EMAIL PROTECTED]> wrote:

> 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

Frank Rubino

 Consultant, Publishing

Mark Logic Corporation

+1 973 893 0875 Office
+1 862 452 2516 Mobile
 
[EMAIL PROTECTED]
www.marklogic.com 

This e-mail and any accompanying attachments are confidential. The
information is intended solely for the use of the individual to whom it is
addressed. Any review, disclosure, copying, distribution, or use of this
e-mail communication by others is strictly prohibited. If you are not the
intended recipient, please notify us immediately by returning this message
to the sender and delete all copies.  Thank you for your cooperation.

 



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to