gpt4 book ai didi

javascript - 云搜索 :ranging the distance between 0 to some value

转载 作者:行者123 更新时间:2023-11-28 06:03:21 25 4
gpt4 key购买 nike

我想包含距离 < 500 的文档,但我正在获取所有文档,请帮助

http://search-vegme-user-7l3rylms73566frh4hwxblekn4.us-east-1.cloudsearch.amazonaws.com/2013-01-01/search?

q=fname:'nikhil' &
expr.distance=haversin(35.621966,-120.686706,latlong.latitude,latlong.longitude)<=500&
sort=distance asc&q.parser=structured&
return=displayname,profileimageurl,distance

Click here to Run it

最佳答案

只需点击网址即可查看答案,它还显示了如何使用结构化查询

http://search-vegme-user-7l3rylms73566frh4hwxblekn4.us-east-1.cloudsearch.amazonaws.com/2013-01-01/search?
q=(and 'nikhil' (and diet:'Vegetarian'(and categoryids:0)))
&q.parser=structured
&expr.distance=haversin(35.621966,-120.686706,latlong.latitude,latlong.longitude)
&sort=distance asc&return=distance,displayname,profileimageurl

在此之后,您需要使用 if 和 for 来过滤距离

关于javascript - 云搜索 :ranging the distance between 0 to some value,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37093605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com