I'm not sure if I'm going to express this correctly but I hope it's clear.
I have a query that searches for a term. If the term occurs in a
title or head element, the score is boosted.
cts:or-query((
cts:word-query("baseball", (), 1),
cts:element-word-query(
(xs:QName("title"), xs:QName("head")), "baseball", (), 16
)
))
If I have two documents where one has an attribute type="biography",
can I form the query to return *both* documents but boost the score up
further on the "biography" one?
This has been stewing for a few days now and I've been trying
different versions in cq, but I can't see how to put the cts:query
constructors together to do it.
Thanks for any help,
Matt
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general