如何在marklogic中搜索解析中计算total



在本文https://docs.marklogic.com/search:parse中解释的MarkLogic示例中,如何计算总数?

的例子:

<search:response total="1234" start="1" page-length="10" xmlns=""
xmlns:search="http://marklogic.com/appservices/search">          

当您使用search:search执行搜索时,它会根据提供的搜索条件执行未过滤的搜索。

返回的@total与向xdmp:estimate()提供搜索条件时得到的结果相同。它使用索引来回答您的问题,并告诉您它认为有多少个文档匹配。

最新更新