Hi All,
We have upgraded our marklogic6 to marklogic7 ,we are facing issue in custom
facet with json response . In Marklogic 6 it was working perfectly with json
and xml both.
Facet code
element search:facet {
attribute name {"program-grades"},
(for $range in $start
return element search:facet-value{
attribute name { fn:string($range/@name) },
attribute program { fn:string($range/@program) },
if($range/@grade) then
attribute grade { fn:string($range/@grade) }
else
(
attribute non_grade_level {
fn:string($range/@non_grade_level) },
attribute non_grade_title {
fn:string($range/@non_grade_title) }
)
,
attribute count { fn:string($range/@count) },
fn:string($range/@name)
})
}
XML response in ML7
<search:facet name="program-grades">
<search:facet-value name="testname" program="test1" grade="6"
count="189">test1</search:facet-value>
</search:facet>
Json reponse in ML7
"program-grades": {"facetValues": [{"name": "testname","count": 189,"value":
"test1"}]}
So custom attribute(program,grade) were missing in json response .it is
happening in only ML7.
Is there any solutions to add custom attributes to json response in ML7.
Regards,
Vikas Singh
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]
http://developer.marklogic.com/mailman/listinfo/general