在索引中进行文档搜索时遇到问题,我使用关键字作为搜索参数,使用距离作为 api 参数中的线索顺序。结果结果已按距离对结果进行排序,但基于关键字的最佳数据从未出现在结果中。
https://****/indexes/IndexName/docs?api-version=2014-10-20-Preview&$filter= geo.distance(geolocation, geography'POINT(-157.825459241867 21.2753200113279)') le 16091.8615317766&search=the beach villas &$orderby=geo.distance(geolocation, geography'POINT(-157.825459241867 21.2753200113279)')&$skip=0&$top=10&$count=true