Master de II. ULL. 1er cuatrimestre. 2020/2021
En la versión actual los bundles guardan de un libro su id
y el title
:
1
./esclu -i b4 -t bundle get _search | jq '.hits.hits'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[
...
{
"_index": "b4",
"_type": "bundle",
"_id": "P75BTWgBZl6NTqvZQTZt",
"_score": 1,
"_source": {
"name": "prueba",
"userKey": "twitter-116415832",
"books": [
{
"id": "pg6873",
"title": "Mark Twain"
},
{
"id": "pg9014",
"title": "The Letters of Mark Twain"
},
{
"id": "pg1286",
"title": "Tales from Shakespeare"
}
]
}
},
{
"_index": "b4",
"_type": "bundle",
"_id": "Pr49TWgBZl6NTqvZfzZv",
"_score": 1,
"_source": {
"name": "nuevo-bundle-prueba",
"userKey": "twitter-116415832",
"books": [
{
"id": "pg14420",
"title": "The Exemplary Novels of Cervantes"
},
{
"id": "pg21839",
"title": "Sense and Sensibility"
}
]
}
}
]
Modifique el programa para que se guarde también el campo authors