如何在弹性搜索URI中附加多个标准?

发布于 2025-01-26 19:01:58 字数 115 浏览 4 评论 0原文

我没有发送身体请求的可能性,因此我必须在主URI中加以串通。现在,我有类似的东西:服务器:端口/索引/_Search?size = 10,对于大小为10的分页,我还需要添加“来自”标准,但是我没有尝试过的工作:/或。

I don't have the possibility of sending a body request, so I have to concatenate the criteria in the main URI. Right now I have something like: server:port/index/_search?size=10, for a pagination with the size of 10, I need to add the "from" criteria also, but nothing I've tried works: / or , .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神也荒唐 2025-02-02 19:01:58

正确格式将为http:// localhost:9200/< your-index>/_search?from = 10& size = 20

您需要在&的分离。

Correct format would be http://localhost:9200/<your-index>/_search?from=10&size=20,

You need to add size with the separation of &.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文