Skip to content

Instantly share code, notes, and snippets.

@yuj18
Created August 10, 2016 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuj18/b1688ffa711da41d9107371ebce52ea4 to your computer and use it in GitHub Desktop.
Save yuj18/b1688ffa711da41d9107371ebce52ea4 to your computer and use it in GitHub Desktop.
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
} ] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment