ユーザに対して自動的に何らかのおすすめを提示すること。レコメンデーションを行うソフトウェアのことをレコメンドエンジンという
- ユーザ: システムを使う人間。利用者
- アイテム: ユーザにおすすめするもの、サービス、商品etc
Point
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>React handson</title> | |
<style id="jsbin-css"> | |
.f-size14 { | |
font-size: 14px; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
ドキュメントどおりindexでPUTしたらエラーになる
{"error":{"root_cause":[{"type":"index_already_exists_exception","reason":"already exists","index":"rettrmt"}],"type":"index_already_exists_exception","reason":"already exists","index":"rettrmt"},"status":400}
すでにあるやつはUpdate出来ないっぽい
更新したいタイプがなければ下記のようにしたら良さそう
# -*- coding: utf-8 -*- | |
from itertools import groupby | |
score = [ | |
{ "id": 1, "name": "アリス", "class": "1-A", "score": 92 }, | |
{ "id": 2, "name": "カレン", "class": "1-B", "score": 43 }, | |
{ "id": 3, "name": "しの", "class": "1-A", "score": 21 }, | |
{ "id": 4, "name": "あやや", "class": "1-A", "score": 94 }, | |
{ "id": 5, "name": "よーこ", "class": "1-A", "score": 38 } | |
] |