[MarkLogic Dev General] Weightings to excluded elements

William Holmes holmesw at rsc.org
Sun Apr 1 07:47:54 PDT 2012


Hi MarkLogic,

Consider the following XQuery expression:

------------
xquery version "1.0-ml";

declare namespace f = "http://bit.ly/3aoURT";

cts:not-query(
  cts:element-word-query(
  xs:QName("f:f-type"),
  "Axxxl Fxxl",
  ("case-insensitive", "unwildcarded")
  ),
  5.00
)
------------

It appears that I can assign weights to not queries, which I think is
absolutely great.

However, when dealing with the word specification in the admin system, I
find that I can attach weights to included elements, but not to excluded
elements. I would like to request this as a feature addition within
MarkLogic. There is a simple business case for assigning weights to
excluded elements.

I may wish to exclude an element "just a little bit" in which case it could have a
weight of say 2, but then I may wish to exclude it "a lot" in which case I could
exclude it with the full weighting of 16.0.

Regards,

Bill

DISCLAIMER:

This communication (including any attachments) is intended for the use of the addressee only and may contain confidential, privileged or copyright material. It may not be relied upon or disclosed to any other person without the consent of the RSC. If you have received it in error, please contact us immediately. Any advice given by the RSC has been carefully formulated but is necessarily based on the information available, and the RSC cannot be held responsible for accuracy or completeness. In this respect, the RSC owes no duty of care and shall not be liable for any resulting damage or loss. The RSC acknowledges that a disclaimer cannot restrict liability at law for personal injury or death arising through a finding of negligence. The RSC does not warrant that its emails or attachments are Virus-free: Please rely on your own screening. The Royal Society of Chemistry is a charity, registered in England and Wales, number 207890 - Registered office: Thomas Graham House, Science Park, Milton Road, Cambridge CB4 0WF


More information about the General mailing list