[MarkLogic Dev General] additional-Query

Pragya Kapoor Pragya_Kapoor at infosys.com
Fri Jun 4 03:41:23 PDT 2010


Hi,

I have a following query regarding:

<additional-query>
cts:or-query((
cts:element-value-query(xs:QName("title"),"rent", ("case-insensitive","unstemmed")),
cts:element-value-query(xs:QName("description"),"house",("case-insensitive","unstemmed"))))
</additional-query>


If there is no results for the 1st OR query then only it should execute the 2nd OR query.
i.e
If there are no titles with rent then
Return the results for house in description field.
I have to do this in additional query only.

I am using search:search($query,$options)

But using cts:or-query we are getting union of both results. How can we achieve this?

Thanks,
Pragya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100604/2e811661/attachment-0001.html 


More information about the General mailing list