Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Solr 使用json POST请求提高最近距离_Solr_Solr Boost - Fatal编程技术网

Solr 使用json POST请求提高最近距离

Solr 使用json POST请求提高最近距离,solr,solr-boost,Solr,Solr Boost,我想增强最近距离文档。在以下人员的帮助下,我构建了以下内容: 邮寄至: {{solr host}}:8983/solr/{{collection}}/select?rows=5 正文: 然而,我的回答中没有任何位置 有什么想法吗?请查看您的查询,应该是这样的 &q={!boost f=recip(geodist(),2,200,20)}canon&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sor

我想增强最近距离文档。在以下人员的帮助下,我构建了以下内容:

邮寄至: {{solr host}}:8983/solr/{{collection}}/select?rows=5

正文:

然而,我的回答中没有任何位置


有什么想法吗?

请查看您的查询,应该是这样的

&q={!boost f=recip(geodist(),2,200,20)}canon&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=score desc

如果您想获得返回距离的值,那么可以在请求中添加fl=\u dist\uuz:geodist。这将向您返回距离。

100%复制粘贴我在问题中发布的链接。一点也不启发。这里的问题是什么?我试图通过json post请求获得测地仪值。你的答案只是从文档中复制粘贴而来,没有提供关于这方面的新见解。我只是更新了一下,如果你想得到响应的距离,你需要在fl中添加_dist_uu:geodist
&q={!boost f=recip(geodist(),2,200,20)}canon&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=score desc