是否可以使用 DSE 搜索进行位置搜索?

Is it possible to do location search with DSE Search?

是否可以在 DSE 中使用 Solr 地理空间搜索?我们已经让 Solr 用于文本搜索,但是在按照 Apache wiki 页面上关于在 Solr schema.xml 中启用字段地理空间搜索的说明后,我们收到以下堆栈跟踪错误:

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Plugin Initializing failure for [schema.xml] fieldType. Schema file is solr/conf/schema.xml
    at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:665)
    at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:303)
    at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:294)
    at com.datastax.bdp.tools.SearchDseToolCommands.createOrReloadCore(SearchDseToolCommands.java:383)
    at com.datastax.bdp.tools.SearchDseToolCommands.access0(SearchDseToolCommands.java:53)
    at com.datastax.bdp.tools.SearchDseToolCommands$CreateCore.execute(SearchDseToolCommands.java:169)
    at com.datastax.bdp.tools.DseTool.run(DseTool.java:114)
    at com.datastax.bdp.tools.DseTool.run(DseTool.java:51)
    at com.datastax.bdp.tools.DseTool.main(DseTool.java:174)

我们遵循了在 Solr wiki 上使用 SpatialRecursivePrefixTreeFieldType 实现字段类型的说明:https://cwiki.apache.org/confluence/display/solr/Spatial+Search

尝试使用 LatLonType 而导致同样的错误。

是的,可以使用 DSE 搜索进行地理空间分析。这是一个 github 示例:

https://github.com/PatrickCallaghan/datastax-geospatial-demo

此外,DSE Spatial 的一些文档:

示例:分析空间数据:

http://docs.datastax.com/en/datastax_enterprise/4.7/datastax_enterprise/ana/anaAnalyzeGIS.html