Marklogic中的面分页

Marklogic中的面分页,marklogic,marklogic-8,Marklogic,Marklogic 8,我使用 search:search($q, $options) 其中,$q是搜索文本 而$options是 <options xmlns="http://marklogic.com/appservices/search"> <constraint name="kn_entry_number"> <range type="xs:string" facet="true"> <facet-option>frequency-ord

我使用

search:search($q, $options)
其中,
$q是搜索文本
$options

<options xmlns="http://marklogic.com/appservices/search">
  <constraint name="kn_entry_number">
    <range type="xs:string" facet="true">
      <facet-option>frequency-order</facet-option>
      <facet-option>descending</facet-option>
      <facet-option>limit=5</facet-option>
      <facet-option>skip=3</facet-option>
      <field name="kn_entrynumber">
      </field>
    </range>
  </constraint>
  <return-results>false</return-results>
  <return-facets>true</return-facets>
</options>

频率顺序
下降的
极限=5
跳过=3
假的
真的
我想在前3个之后得到前5个,以便模拟分页。但是
skip
选项在这里似乎不起作用


使用搜索api有什么方法可以做到这一点,或者我唯一的选择是使用
cts查询

如果您想翻阅范围索引中的值,还可以查看
search:values()

您必须使用
search:search()
来解析查询

或者,您可以使用
cts:parse()
——它采用一种稍微不同的方法来解析查询文本——和
cts:values()
cts:value-ranges()

希望有帮助