I am using "stratio cassandra-lucene-index" plugin for making spatial queries to cassandra below is my query which i am making from cqlsh and is working fine,
SELECT * FROM user_location WHERE expr(user_location_index, '{filter:{type:"geo_distance", field:"place", latitude: 28.6076, longitude: 77.3683, max_distance:"20km"}, sort:{field: "place", type: "geo_distance", latitude: 28.6076, longitude: 77.3683}}');
My Question is How can i make this above query from Node.js, I am using cassandra-driver for other queries, Any suggestion is appreciated.