在titan-rexster-cassandra-0.4.1上运行查询:
http://localhost:8182/graphs/graph/tp/gremlin?script=g.V().has('place',WITHIN,Geoshape.circle(38.8951,-77.0367,50)).count()
因以下错误而失败:
{"message":"","error":"javax.script.ScriptException: com.thinkaurelius.titan.core.TitanException: Could not process individual retrieval call ","api":{"description":"evaluate an ad-hoc Gremlin script for a graph.","parameters":{"rexster.returnKeys":"an array of element property keys to return (default is to return all element properties)","rexster.showTypes":"displays the properties of the elements with their native data type (default is false)","load":"a list of 'stored procedures' to execute prior to the 'script' (if 'script' is not specified then the last script in this argument will return the values","rexster.offset.end":"end index for a paged set of data to be returned","rexster.offset.start":"start index for a paged set of data to be returned","params":"a map of parameters to bind to the script engine","language":"the gremlin language flavor to use (default to groovy)","script":"the Gremlin script to be evaluated"}},"success":false}
注意:我可以使用gremlin控制台运行它而没有任何问题。
感谢您的帮助