Dear All
I am facing one problem while rendering the facets.say I have three sample
xml .
xdmp:document-insert("/company/001",
<companyRoot>
<name>cat</name>
<myCustomType>cat dog</myCustomType>
</companyRoot>);
xdmp:document-insert("/myspec/001",
<specificationRoot>
<myCustomType>cat and dog</myCustomType>
</specificationRoot>);
xdmp:document-insert("/testme/001",
<testMe>
<myCustomType>cat and very far dog</myCustomType>
</testMe>)
I put range indexes over the element myCustomType element which is
present in all three xml. using search:search API when i am searching
for the word cat or dog with the options
<options xmlns="http://marklogic.com/appservices/search">
<searchable-expression>/(companyRoot | specificationRoot)</
searchable-expression>
(:search in the xml with root elements companyRoot or specificationRoot
but not testMe:)
<constraint name="doc-type">
<range type="xs:string" facet="true">
<element ns="" name="myCustomType"/>
</range>
</constraint>
</options>
The search result is fine but the facets results including the element
from the testMe root elements also.Is there any way around so that the
facets built only from the xml whose root element is defined in the
searchable-expression option.
If I use additional query then what is the way to express that search
within the xml whose root elements are companyRoot or specificationRoot
but not testMe..Please reply
Thanks in advance
Santhosh Rajasekaran
Tata Consultancy Services
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
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