equal
deleted
inserted
replaced
38 "parent_ids": { |
38 "parent_ids": { |
39 "type": "keyword" |
39 "type": "keyword" |
40 } |
40 } |
41 } |
41 } |
42 } |
42 } |
|
43 |
|
44 |
|
45 PUT /onf_website/_mapping/PyAMS_document |
|
46 { |
|
47 "properties": { |
|
48 "resource_info": { |
|
49 "type": "object", |
|
50 "properties": { |
|
51 "author": { |
|
52 "type": "text" |
|
53 }, |
|
54 "drawer": { |
|
55 "type": "text" |
|
56 }, |
|
57 "colourist": { |
|
58 "type": "text" |
|
59 }, |
|
60 "lettering": { |
|
61 "type": "text" |
|
62 }, |
|
63 "producer": { |
|
64 "type": "text" |
|
65 }, |
|
66 "director": { |
|
67 "type": "text" |
|
68 }, |
|
69 "actors": { |
|
70 "type": "text" |
|
71 }, |
|
72 "editor": { |
|
73 "type": "text" |
|
74 }, |
|
75 "collection": { |
|
76 "type": "keyword" |
|
77 }, |
|
78 "series": { |
|
79 "type": "text" |
|
80 }, |
|
81 "editor_reference": { |
|
82 "type": "keyword" |
|
83 }, |
|
84 "isbn_number": { |
|
85 "type": "keyword" |
|
86 }, |
|
87 "summary": { |
|
88 "type": "object", |
|
89 "properties": { |
|
90 "en": { |
|
91 "type": "text" |
|
92 }, |
|
93 "fr": { |
|
94 "type": "text", |
|
95 "analyzer": "french", |
|
96 "search_analyzer": "french_search" |
|
97 } |
|
98 } |
|
99 }, |
|
100 "publisher_words": { |
|
101 "type": "object", |
|
102 "properties": { |
|
103 "en": { |
|
104 "type": "text" |
|
105 }, |
|
106 "fr": { |
|
107 "type": "text", |
|
108 "analyzer": "french", |
|
109 "search_analyzer": "french_search" |
|
110 } |
|
111 } |
|
112 } |
|
113 } |
|
114 } |
|
115 } |
|
116 } |
|
117 |
|
118 |
|
119 Update index mappings: |
|
120 ====================== |
|
121 |
|
122 PUT /onf_website_v2 |
|
123 {... index_settings ...} |
|
124 |
|
125 POST /_reindex |
|
126 { |
|
127 "source": { |
|
128 "index": "onf_website-v1", |
|
129 "size": 10 |
|
130 }, |
|
131 "dest": { |
|
132 "index": "onf_website-v2", |
|
133 "pipeline": "attachment" |
|
134 } |
|
135 } |
|
136 |
|
137 DELETE /onf_website |
|
138 |
|
139 PUT /_aliases |
|
140 { |
|
141 "actions": { |
|
142 "add": { |
|
143 "index": "onf_website-v2", |
|
144 "alias": "onf_website" |
|
145 } |
|
146 } |
|
147 } |
|
148 |