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
Collections apachesolr-Lucene-Zip代码半径搜索_Collections_Solr_Lucene_Spatial Query - Fatal编程技术网

Collections apachesolr-Lucene-Zip代码半径搜索

Collections apachesolr-Lucene-Zip代码半径搜索,collections,solr,lucene,spatial-query,Collections,Solr,Lucene,Spatial Query,我有一个现有的个人记录集合已经加载到我的Solr服务器。每条记录都有一个ZIPCODE字段。我知道Solr现在支持使用geodist()函数进行空间搜索,问题是我没有每个人的lat和long 我是否可以向Solr添加另一个集合,将ZipCodes映射到lat和long,然后像使用SQL一样加入它们?这在Solr中可能吗?AFAIK,在Solr中没有办法将Zipcode转换为Lat/Long 大多数地理空间查询(不限于Solr)使用纬度和经度执行半径搜索。所以这不是一个Solr特有的问题 我建议使

我有一个现有的个人记录集合已经加载到我的Solr服务器。每条记录都有一个ZIPCODE字段。我知道Solr现在支持使用
geodist()
函数进行空间搜索,问题是我没有每个人的
lat
long


我是否可以向Solr添加另一个集合,将ZipCodes映射到lat和long,然后像使用SQL一样加入它们?这在Solr中可能吗?

AFAIK,在Solr中没有办法将
Zipcode
转换为
Lat/Long

大多数地理空间查询(不限于Solr)使用纬度和经度执行半径搜索。所以这不是一个Solr特有的问题

我建议使用

您可以更新现有索引,以便为每个文档填充这些字段,但如果可能,我更希望使用这些数据重新创建Solr索引

为此,我不会包含另一个集合,因为JOIN在Solr中不受支持,因为它不是关系数据存储

编辑: 索尔确实加入了,但在你的情况下,我还是不会加入,除非我必须加入