标签: datastax-enterprise datastax
问题陈述:我目前正在尝试在Datastax Enterprise 4.0中配置空间搜索。我有lat和long作为cassandra列族中的两个独立列。以什么方式/方式可以将lat和long组合成一个逗号分隔的solr空间搜索字段,以便我可以利用geofilt,geodist函数。我需要在cassandra中使用另一个可以存储lat的列吗?
答案 0 :(得分:0)
使用映射到Cassandra UTF8Type的Solr LatLonType。
http://www.datastax.com/documentation/datastax_enterprise/4.0/datastax_enterprise/srch/srchSolrType.html