Skip to content

Instantly share code, notes, and snippets.

{
"took": 28,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 244,
{
"_shard": 3,
"_node": "P5FVdOUHSZWunPqghQKmZA",
"_index": "jdbc_dev",
"_type": "media",
"_id": "8QxnX7nhSWCVukREHUJ7IQ",
"_score": 1.6720551,
"_source": {
"DISPLAY_NAME": "Happy Talk",
"PRICE": 5,
{
"took": 117,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 380,
@cheehoo
cheehoo / relevancysorting
Created March 28, 2014 10:09
relevancy sorting queries
{
"from" : 0,
"size" : 10,
"query" : {
"filtered" : {
"query" : {
"bool" : {
"should" : [ {
"wildcard" : {
"DISPLAY_NAME" : "love"