Search code examples
datastax-enterprisedatastax

datastax enterprise spatial search


Problem Statement: I am currently trying to configure spatial search in Datastax Enterprise 4.0. I have lat and long as two separate columns in cassandra column family. In what way/ways can I combine lat and long into one comma separated solr spatial search field so that I can take advantage of geofilt, geodist functions. Do I need another column in cassandra which would store lat,long ?


Solution

  • Use the Solr LatLonType which maps to a Cassandra UTF8Type.

    http://www.datastax.com/documentation/datastax_enterprise/4.0/datastax_enterprise/srch/srchSolrType.html