-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc_attribute.json
270 lines (270 loc) · 6.85 KB
/
doc_attribute.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
[
{
"description": "the name of the attribute (should match the name of the attribute provided in the doc_product table in either string_attributes, numeric_attributes or localized_numeric_attributes",
"type": "STRING",
"name": "name",
"mode": "REQUIRED"
},
{
"type": "STRING",
"name": "internal_id",
"description": "the internal identifier of the attribute"
},
{
"type": "STRING",
"name": "external_id",
"description": "the external identifier of the attribute (can be the same as the internal identifier)"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "STRING",
"name": "value",
"mode": "REQUIRED"
}
],
"description": "the title of the attribute",
"type": "RECORD",
"name": "label",
"mode": "REPEATED"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "STRING",
"name": "value",
"mode": "REQUIRED"
}
],
"description": "the attribute group in which this attribute belongs",
"type": "RECORD",
"name": "attribute_group",
"mode": "REPEATED"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "STRING",
"name": "value",
"mode": "REQUIRED"
}
],
"description": "the attribute sub-group in which this attribute belongs",
"type": "RECORD",
"name": "attribute_sub_group",
"mode": "REPEATED"
},
{
"description": "the stores",
"type": "STRING",
"name": "stores",
"mode": "REPEATED"
},
{
"description": "the type format of the attribute : 'numeric', 'string' or 'datetime', it is supported to set it to string but provide numeric attributes in the products, as lon as you have a mapping logic in the attribute values",
"type": "STRING",
"name": "format",
"mode": "REQUIRED"
},
{
"description": "are the values localized (different for every language) or not, it is supported to set it to true but provide non-localized attributes in the products, as lon as you have a mapping logic in the attribute values",
"type": "BOOLEAN",
"name": "localized",
"mode": "REQUIRED"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "STRING",
"name": "value",
"mode": "REQUIRED"
}
],
"description": "the link of the attribute value",
"type": "RECORD",
"name": "link",
"mode": "REPEATED"
},
{
"description": "the list of related data types ('product', 'blog', 'content', ...), by default 'all' if empty",
"type": "STRING",
"name": "data_types",
"mode": "REPEATED"
},
{
"description": "is it possible for this attribute to have more than 1 value per sku (or final content), set to false unless necessary, as multi-valued vields cannot be sorted or grouped by",
"type": "BOOLEAN",
"name": "multi_value",
"mode": "REQUIRED"
},
{
"description": "is it an attribute that has a hierarchy of values (e.g.: category tree)",
"type": "BOOLEAN",
"name": "hierarchical",
"mode": "REQUIRED"
},
{
"description": "should be indexed as part of the searcheable : 0 : values not indexed for search, 1 : values indexed for search only in main index, 2 : values indexed for search in specialized field which can be boosted individually",
"type": "INTEGER",
"name": "search_by",
"mode": "REQUIRED"
},
{
"description": "should this attribute values be used as search suggestions",
"type": "BOOLEAN",
"name": "search_suggestion",
"mode": "REQUIRED"
},
{
"description": "is it an attribute that needs to be used as a filter in some requests",
"type": "BOOLEAN",
"name": "filter_by",
"mode": "REQUIRED"
},
{
"description": "is it a attribute that needs to be grouped by in some requests (if set to true, then multi_value must be set to false)",
"type": "BOOLEAN",
"name": "group_by",
"mode": "REQUIRED"
},
{
"description": "is it a attribute that needs to be ordered by in some requests (if set to true, then multi_value must be set to false)",
"type": "BOOLEAN",
"name": "order_by",
"mode": "REQUIRED"
},
{
"description": "should this attribute values be indexed independantly so they can be searched for (e.g.: author, brand, ...)",
"type": "BOOLEAN",
"name": "indexed",
"mode": "REQUIRED"
},
{
"fields": [
{
"type": "STRING",
"name": "customer_groups",
"mode": "REPEATED"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "INTEGER",
"name": "value",
"mode": "REQUIRED"
}
],
"type": "RECORD",
"name": "values",
"mode": "REPEATED"
}
],
"description": "the product visibility :VISIBILITY_NOT_VISIBLE = 1; VISIBILITY_IN_CATALOG = 2; VISIBILITY_IN_SEARCH = 3; VISIBILITY_BOTH = 4;",
"type": "RECORD",
"name": "visibility",
"mode": "REPEATED"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "INTEGER",
"name": "value",
"mode": "REQUIRED"
}
],
"description": "the product status",
"type": "RECORD",
"name": "status",
"mode": "REPEATED"
},
{
"fields": [
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "DATETIME",
"name": "value",
"mode": "REQUIRED"
}
],
"type": "RECORD",
"name": "start_datetime",
"mode": "REPEATED"
},
{
"fields": [
{
"type": "STRING",
"name": "language",
"mode": "REQUIRED"
},
{
"type": "DATETIME",
"name": "value",
"mode": "REQUIRED"
}
],
"type": "RECORD",
"name": "end_datetime",
"mode": "REPEATED"
}
],
"description": "information about the activity periods of the product group",
"type": "RECORD",
"name": "periods",
"mode": "REPEATED"
},
{
"description": "technical field",
"type": "DATETIME",
"name": "creation_tm",
"mode": "REQUIRED"
},
{
"description": "technical field",
"type": "INTEGER",
"name": "client_id",
"mode": "REQUIRED"
},
{
"description": "technical field",
"type": "INTEGER",
"name": "src_sys_id",
"mode": "REQUIRED"
}
]