我在wells.xmlxml
中有以下格式
<wells><well><date-created>MMDDYYYY</date-created><title>ABC</title></well><well><date-created>MMDDYYYY</date-created><title>ABC</title></well></wells>
现在我执行了以下搜索查询:
declare namespace ts= "http://marklogic.com/mlu/clover/docs-xml";
import module namespace search ="http://marklogic.com/appservices/search" at "/MarkLogic/appservices/search/search.xqy";
declare variable $options :=<options xmlns="http://marklogic.com/appservices/search"><transform-results apply="snippet"></transform-results></options>;
for $doc in search:search("ABC",$options,1,1)//search:match
return $doc
结果,它给了我两个结果集作为同一个文档中的两个记录,无论我在哪里传递 (1,1) 组合search:search
。
请帮助如何解决这个问题?
提前致谢。