Hi Abhishek, Actually my problem is the reverse. I need two facets for two elements that have child elements with the same QName i.e., e.g., <foo/> and <bar/> that have the <string> child from my example. I cannot create range index on <foo/> and <bar/> because the text node is not their direct child but rather a children of the <string/> element. I suppose restructuring the content will fix this problem too but I was hoping to avoid doing that. We are able to create word constraint without a content reconstruction by defining two fields but as it turned out this solution does not work for facets.
Regrads, Majid On 28 June 2011 10:51, Abhishek53 S <[email protected]> wrote: > > Hi Majid > > You cannot create facet over fields. If single facet is require over > elements with different QName then it requires restructuring the content and > keep the elements value participation during facet formation as new > attribute or element value with same QName name. Apply the range indexing > over the new element or attribute. > > Regards > Abhishek Srivastav > Systems Engineer > Tata Consultancy Services > Cell:- +91-9883389968 > Mailto: [email protected] > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Outsourcing > ____________________________________________ > > > From: Majid Valipour <[email protected]> To: > [email protected] Date: 06/28/2011 08:08 PM Subject: [MarkLogic > Dev General] Facet on Field Sent by: > [email protected] > ------------------------------ > > > > Hi all, > > Is it possible to create a Facet on a Field? > > If negative what are my options (beside creating a field) to create search > constraint and facet for > elements foo and bar in the following XML: > <foo> > <string>abc</string> > </foo> > <bar> > <string>xyz</string> > <bar> > > Thanks, > Majid Valipour > Programmer > Scholars Portal > 416-978-7216 > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
