如何配置IBM MobileFirst Platform 8.0分析控制台REST API最大搜索结果? [英] How to configure IBM MobileFirst Platform 8.0 analytics console REST API maximum search result?
问题描述
为什么Elasticsearch REST API通过端口9500 *搜索和查看数据仅返回10条记录?有控制这个的最大数量吗?
Why is the Elasticsearch REST API for search and view data via port 9500* returning only 10 records? Is there a maximum number that controls this?
http://localhost:9500/ */_ search?q = module:登录"
http://localhost:9500/*/_search?q=module:"login"
* https://mobilefirstplatform.ibmcloud.com/tutorials/zh-CN/foundation/8.0/analyt ics/elasticsearch/
*https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/analyt ics/elasticsearch/
推荐答案
由于分析是基于elasticsearch的,因此需要在查询中向URL添加附加参数&size=100000
.
Since analytics is based on the elasticsearch, to the query you need to add the additional parameter &size=100000
to the url.
示例: http://localhost:9500/_search?size = 100000
这篇关于如何配置IBM MobileFirst Platform 8.0分析控制台REST API最大搜索结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!