[MarkLogic Dev General] Facets on properties in ML4.2

Justin Makeig Justin.Makeig at marklogic.com
Thu Jan 7 09:50:13 PST 2016

Are you really running MarkLogic 4.2? This is ancient. You should plan to upgrade as soon as feasible. It will be very difficult for the community or MarkLogic Support to assist you with this version. The most recent version is 8.0-4.

It is possible to facet on properties. cts:values has an option that allows you include values from properties fragments. (Or cts:element-values in 4.2.) However, in general, I'd advise against properties fragments. Because they are separate from document fragments, properties require extra work to join at query time. If you don't want to change/enrich your actual document content you can use an envelope to "wrap" your documents:

<my:envelope xmlns:my="…">
  <my:meta>…</my:meta><!-- <-- properties go here -->
  <my:body>…</my:body><!-- <-- organically document contents goes here -->

This has the advantage of segregating the metadata (properties) and data, but also colocates them in the same fragment, reducing the work that queries will have to do.


> On Jan 7, 2016, at 1:35 AM, Rajamani.Marimuthu at cognizant.com wrote:
> Hi Team,
>   We are trying to implement facets from various property elements in ML4.2 version . Is that possible. Like
>   Search term :  “sample” present in content body
>   Facets : on some properties like : author, geography   etc. from document properties . Kindly appreciate if have some sample custom constraint or similar options
> By
> Raja >>>                                                                                                                                   
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> Manage your subscription at: 
> http://developer.marklogic.com/mailman/listinfo/general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20160107/cf888f62/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4477 bytes
Desc: not available
Url : http://developer.marklogic.com/pipermail/general/attachments/20160107/cf888f62/attachment-0001.bin 

More information about the General mailing list