Skip to content

Instantly share code, notes, and snippets.

@rzezeski
Created October 18, 2012 20:40
Show Gist options
  • Save rzezeski/3914565 to your computer and use it in GitHub Desktop.
Save rzezeski/3914565 to your computer and use it in GitHub Desktop.
start of yokozuna tagging
curl -XPUT -H 'content-type: text/plain' -H 'x-riak-meta-yz-tags: X-Riak-Meta-Name_s' -H 'x-riak-meta-name_s: zezeski' 'http://localhost:8098/riak/people/ryan' -d "You gonna drink that?"
curl 'http://localhost:8098/search/people?q=X-Riak-Meta-Name_s:zezeski&wt=json' | jsonpp
{
"responseHeader": {
"status": 0,
"QTime": 22,
"params": {
"shards": "127.0.0.1:8093/solr/people",
"wt": "json",
"fq": "(_yz_node:[email protected] AND _yz_pn:1) OR (_yz_node:[email protected] AND _yz_pn:4) OR (_yz_node:[email protected] AND _yz_pn:7) OR (_yz_node:[email protected] AND _yz_pn:10) OR (_yz_node:[email protected] AND _yz_pn:13) OR (_yz_node:[email protected] AND _yz_pn:16) OR (_yz_node:[email protected] AND _yz_pn:19) OR (_yz_node:[email protected] AND _yz_pn:22) OR (_yz_node:[email protected] AND _yz_pn:25) OR (_yz_node:[email protected] AND _yz_pn:28) OR (_yz_node:[email protected] AND _yz_pn:31) OR (_yz_node:[email protected] AND _yz_pn:34) OR (_yz_node:[email protected] AND _yz_pn:37) OR (_yz_node:[email protected] AND _yz_pn:40) OR (_yz_node:[email protected] AND _yz_pn:43) OR (_yz_node:[email protected] AND _yz_pn:46) OR (_yz_node:[email protected] AND _yz_pn:49) OR (_yz_node:[email protected] AND _yz_pn:52) OR (_yz_node:[email protected] AND _yz_pn:55) OR (_yz_node:[email protected] AND _yz_pn:58) OR (_yz_node:[email protected] AND _yz_pn:61) OR (_yz_node:[email protected] AND _yz_pn:62 AND (_yz_fpn:62))",
"q": "X-Riak-Meta-Name_s:zezeski"
}
},
"response": {
"numFound": 1,
"start": 0,
"maxScore": 0.71231794,
"docs": [
{
"X-Riak-Meta-Name_s": "zezeski",
"id": "ryan_7",
"_yz_ed": "20121018T203909 ryan WvtpR0QoNMF0AMOXbeMyjjd95qk=",
"_yz_fpn": "5",
"_yz_node": "[email protected]",
"_yz_pn": "7",
"_yz_rk": "ryan",
"_version_": 1416199142906003457
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment