【问题标题】:Is it possible to do location search with DSE Search?是否可以使用 DSE Search 进行位置搜索?
【发布时间】:2015-12-08 22:30:54
【问题描述】:

是否可以在 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.access$200(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 版本?您是否成功执行了任何 cassandra 查询?

标签: solr cassandra datastax datastax-enterprise


【解决方案1】:

是的,可以使用 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

【讨论】:

    猜你喜欢
    • 2022-08-15
    • 1970-01-01
    • 1970-01-01
    • 2016-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-07
    • 2016-05-12
    相关资源
    最近更新 更多