有沒有辦法搜索與索引多邊形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