1

当我尝试执行查询时

SELECT objectid, field_name FROM spatialtable.solr WHERE solr_query='shape_index:"Intersects(-180.0 -90.0 180.0 90.0)"' LIMIT 1001

针对 DataStax Enterprise Search 实例,我得到:

An error occurred when executing the SQL command:
SELECT objectid, field_name FROM spatialtable.solr WHERE solr_query='shape_index:"Intersects(-180.0 -90.0...
the Cassandra implementation does not support this method

同时,我可以完美地从 DSE SOLR Admin Web 控制台执行 shape_index:"Intersects(-180.0 -90.0 180.0 90.0)" 查询。是否可以从 CQL 运行此查询?如果是,正确的语法是什么?

谢谢,莱昂

4

1 回答 1

1

solr 的 CQL 接口在你能做的事情上非常有限。通过 CQL 运行相交是不可能的,事实上,除了来自 CQL 端的简单 lucine 查询之外,还有很多事情是行不通的。我建议您通过 Solr 界面运行它(以及大多数搜索查询)。

于 2014-01-09T19:02:03.540 回答