Skip to content

Instantly share code, notes, and snippets.

@ken57
Last active August 12, 2017 06:03
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 ken57/2d360995b177fda50662eb534c2459e3 to your computer and use it in GitHub Desktop.
Save ken57/2d360995b177fda50662eb534c2459e3 to your computer and use it in GitHub Desktop.
タームクエリでの検索結果(hoge)
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 10,
"max_score": 0.90468985,
"hits": [{
"_index": "blog",
"_type": "item",
"_id": "e",
"_score": 0.90468985,
"_source": {
"title": "hoge",
"favoriteCount": 100,
"viewCount": 1000
}
}, {
"_index": "blog",
"_type": "item",
"_id": "j",
"_score": 0.90468985,
"_source": {
"title": "hoge",
"favoriteCount": 6,
"viewCount": 1
}
}, {
"_index": "blog",
"_type": "item",
"_id": "b",
"_score": 0.7996404,
"_source": {
"title": "hoge hoge",
"favoriteCount": 10,
"viewCount": 100
}
}, {
"_index": "blog",
"_type": "item",
"_id": "i",
"_score": 0.7996404,
"_source": {
"title": "hoge hoge",
"favoriteCount": 5,
"viewCount": 5
}
}, {
"_index": "blog",
"_type": "item",
"_id": "a",
"_score": 0.63971233,
"_source": {
"title": "hoge fuga hoge fuga",
"favoriteCount": 1,
"viewCount": 10
}
}, {
"_index": "blog",
"_type": "item",
"_id": "c",
"_score": 0.63971233,
"_source": {
"title": "hoge fuga piyo hoge",
"favoriteCount": 0,
"viewCount": 200
}
}, {
"_index": "blog",
"_type": "item",
"_id": "d",
"_score": 0.63971233,
"_source": {
"title": "piyo hoge hoge",
"favoriteCount": 6,
"viewCount": 1
}
}, {
"_index": "blog",
"_type": "item",
"_id": "g",
"_score": 0.63971233,
"_source": {
"title": "piyo hoge hoge",
"favoriteCount": 6,
"viewCount": 100
}
}, {
"_index": "blog",
"_type": "item",
"_id": "h",
"_score": 0.3958018,
"_source": {
"title": "p h hoge piyo piyo",
"favoriteCount": 25,
"viewCount": 500
}
}, {
"_index": "blog",
"_type": "item",
"_id": "f",
"_score": 0.3392587,
"_source": {
"title": "hoge piyo aa a a hogehoge",
"favoriteCount": 0,
"viewCount": 1
}
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment