jyu@:Server$ curl -H "Content-Type: application/json" -X POST -d '[{"@type":string,"@value":"WordVec"},{"@type":string,"@value":"2"},{"@type":string,"@value":"word"},{"@type":string,"@value":"wordvec"},{"@type":string,"@value":"3.5 4"}]' http://localhost:15000/gemfire-api/v1/functions/KNN?onMembers=server0
[ [ {
"word" : "2",
"wordvec" : "2 2",
"dist" : 2.5
}, {
"word" : "3",
"wordvec" : "3 6",
"dist" : 2.0615528128088303
} ] ]
-
-
Save yuj18/b1688ffa711da41d9107371ebce52ea4 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment