有没有办法搜索与索引多边形X距离的多边形?Solr 4空间搜索多边形vs多边形与距离参数搜索
我已经收录多边形和multipolygons在SOLR 4.2.1指数与字段类型
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
spatialContextFactory="com.spatial4j.core.context.jts.JtsSpatialContextFactory"
distErrPct="0.001"
maxDistErr="0.000009"
units="degrees"
/>
,我已经可以做一些简单的交叉查询,如
fq=geo_location:"Intersects(POLYGON((-0.141964 51.515580, -0.130119 51.516648, -0.129261 51.515900)))"
所以我需要:
在多边形索引中搜索POLYGON +距离
和 在多边形索引中搜索POINT +距离(圆圈)
嗨,所以有一个问题:solr的响应时间如何?我正在考虑使用solr + spark进行批量逆向地理编码。我不想知道Solr搜索是否支持它。 – 2016-04-07 09:08:58