-
Notifications
You must be signed in to change notification settings - Fork 0
/
works_index.sh
executable file
·59 lines (59 loc) · 1.54 KB
/
works_index.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
curl -X PUT "elastic:[email protected]:9200/new_works" -H "Content-Type: application/json" -d'
{
"settings": {
"index": {
"number_of_shards": 12,
"number_of_replicas": 0
}
},
"mappings": {
"properties": {
"doi": { "type": "text" },
"title":
{
"type": "text" ,
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"display_name": { "type": "text" },
"publication_year": { "type": "long" },
"publication_date": { "type": "text" },
"language": { "type": "keyword" },
"primary_location": {
"type": "object"
},
"type": { "type": "keyword" },
"authorships": {
"type": "nested"
},
"countries_distinct_count": { "type": "long" },
"institutions_distinct_count": { "type": "long" },
"cited_by_count": { "type": "long" },
"keywords": {
"type": "nested",
"properties": {
"keyword": {
"type": "text"
},
"score": {
"type": "float"
}
}
},
"referenced_works_count": { "type": "long" },
"referenced_works": { "type": "keyword" },
"related_works": { "type": "keyword" },
"counts_by_year": {
"type": "nested"
},
"updated_date": { "type": "date" },
"created_date": { "type": "date" },
"abstract_inverted_index": { "type": "text" },
"concepts": { "type": "nested" },
"collected_num": { "type": "long" }
}
}
}'