i具有以下URI,该URI应该从性别领域检索所有值。
http://localhost:9200/persons/_search?_source=Gender
但是,它不会返回我在性别领域索引中的所有数据。我也想使数据也不同。
我正在Angularjs消费此REST API。有人可以帮助我实现此类uri查询吗?
谢谢。
lasticsearch默认返回10次命中,除非size
。
获取字段的不同值使用terms aggregation
。
参考:ES-Return-Inique-Values