[MarkLogic Dev General] Quick check on boosting scores
Mattio Valentino
mattio.valentino at gmail.com
Fri Jun 29 07:22:22 PDT 2007
This is just more of a sanity check than anything else. I think this
is okay based on what I've seen in the dev guide and the list
archives.
I have a query where I want to search for the term wherever it occurs,
but if it occurs in a title element, I want to boost the score. Is
this a reasonable pattern to follow?
cts:or-query((
cts:and-query(cts:word-query("jazz", (), 0.25)),
cts:and-query(cts:element-word-query(xs:QName("title"), "jazz", (), 1.5))
))
Thanks,
Mattio
More information about the General
mailing list