@zhangdong92 目前es还不支持跨国际日期变更线的查询,不过你可以通过将查询拆分成2个子查询,将一个跨变更线的区域切分成2个不跨变更线区域,然后用bool查询进行AND合并,这样就能实现你的功能。或者重建数据,将geo_points重建为geo_shapes,并且建议设置points_only为true,再使用geo_shape查询。
1 Like
@zhangdong92 目前es还不支持跨国际日期变更线的查询,不过你可以通过将查询拆分成2个子查询,将一个跨变更线的区域切分成2个不跨变更线区域,然后用bool查询进行AND合并,这样就能实现你的功能。或者重建数据,将geo_points重建为geo_shapes,并且建议设置points_only为true,再使用geo_shape查询。
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.