URI 参数提供的集合是 AND 相关的。作为查询提供的等效项是:
<search:query>
<search:and-query>
<search:collection-query>
<search:uri>GEWN</search:uri>
</search:collection-query>
<search:collection-query>
<search:uri>TSJN</search:uri>
</search:collection-query>
</search:and-query>
</search:query>
当多个集合传递给单个fn:collection()
或cts:collection-query()
调用时,这些集合是 OR 相关的。要获得等效项,请提供以下查询:
<search:query>
<search:collection-query>
<search:uri>GEWN</search:uri>
<search:uri>TSJN</search:uri>
</search:collection-query>
</search:query>
以下是 JSON 中集合查询的参考:
http://docs.marklogic.com/guide/search-dev/structured-query#id_76890
希望有帮助,