Hi Geert, Am aware about that fragment-scope option in search constraints ,but it's available from ML 5 onwards . So, no luck from that. Is that possible to use custom constraint to achieve my requirement .
By Raja >>> From: [email protected] [mailto:[email protected]] On Behalf Of Geert Josten Sent: Friday, January 08, 2016 3:29 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2 Hi Raja, If I am not mistaken, ML 4.2 supports the search API, with functions like search:search and such. You can define search constraints in your search options, and provide a fragment-scope in them. You can provide that on top-level, like shown here: http://docs.marklogic.com/guide/search-dev/appendixa#id_92359, but also within constraints, either directly below the constraint element, or within the range element. I am not sure whether fragment-scope was supported in the early version of Search API in 4.2 as it was still pretty new back then, but that is how you would do it with MarkLogic 8. Kind regards, Geert From: <[email protected]<mailto:[email protected]>> on behalf of "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Friday, January 8, 2016 at 9:32 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2 Hi Justin, Thanks for the reply mail . Yes we are using ML4.2 version but, we are preparing the migration from 4.2 to latest 8.* version very soon. But, right now - we don't have any document content change plan- so I need to implement the expected facet on properties files. Am really clueless about this custom constraint on properties for facets. So, are you saying - value constraint can help to create facets on properties . Here "envelop original content and properties" meant - am I want to save both in single XML file. Could you please give little more points about this implementation . Or if that is not possible with existing content and properties in ML4.2 then what is the alternative method for the same . Kindly appreciate your timely support . By Raja >>> From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Justin Makeig Sent: Thursday, January 07, 2016 11:20 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2 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 --> </my:envelope> 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. Justin On Jan 7, 2016, at 1:35 AM, [email protected]<mailto:[email protected]> 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 [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general 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. 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 [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
