更新时间:2023-11-24 10:14:28
我建议您看看search:search
功能.它提供了分页和开箱即用的多面搜索.您也不需要三个搜索框,您可以使用前缀编写字段搜索查询.像这样:
I suggest you take a look at the search:search
functionality. It provides pagination, and faceted searching out of the box. You don't need three search boxes either, you can write fielded search queries using prefixes. Something like this:
fulltextterm first:name last:name address:city
您甚至可以在该表达式中使用花括号, AND , OR 和 NOT .
You can even use braces, AND, OR, and NOT in that expression.
有关Search API
的更多信息可以在Search Dev指南中找到:
More about the Search API
can be found in the Search Dev guide:
http://docs.marklogic.com/guide/search-dev
函数引用也可能有用:
http://docs.marklogic.com/search
出于完整性考虑,REST-API
也值得一提:
And for the sake of completeness the REST-API
is worth mentioning too:
http://docs.marklogic.com/REST/client/search
HTH!