Slide 5
Slide 5 text
Indexando
- API RESTful (HTTP) para meter y sacar datos.
- Bien estándar: POST para crear, DELETE para
borrar, GET para obtener, PUT para actualizar.
$ curl -XPOST 'localhost:9200/newyork/article' -d '{
"title": "''Doctor Who'' Versus ''Sherlock''? Keep Dreaming, Comic-Con",
"keywords": ["doctor-who", "sherlock-holmes", "comic-con"],
"pub_date": "2015-07-09T21:56:18Z",
"print_page": 7,
"section_name": {
"display_name": "U.S.",
"content": "us",
"url": "http://www.nytimes.com/pages/national/index.html"
},
"web_url": "http://www.nytimes.com/aponline/2015/07/09/us/ap-us-comic-con-doctor-who-
sherlock.html",
"content": "..."
}'