|
78 | 78 | } |
79 | 79 | }, |
80 | 80 | { |
81 | | - "skipLanguages": [ |
82 | | - "kotlin" |
83 | | - ], |
| 81 | + "skipLanguages": ["kotlin"], |
84 | 82 | "parameters": { |
85 | 83 | "compositionID": "compositionID", |
86 | 84 | "objectID": "rule-with-metadata", |
|
197 | 195 | "compositionRule": { |
198 | 196 | "objectID": "rule-with-exernal-source", |
199 | 197 | "description": "my description", |
200 | | - "tags": [ |
201 | | - "tag1", |
202 | | - "tag2" |
203 | | - ], |
| 198 | + "tags": ["tag1", "tag2"], |
204 | 199 | "enabled": true, |
205 | 200 | "validity": [ |
206 | 201 | { |
|
258 | 253 | "body": { |
259 | 254 | "objectID": "rule-with-exernal-source", |
260 | 255 | "description": "my description", |
261 | | - "tags": [ |
262 | | - "tag1", |
263 | | - "tag2" |
264 | | - ], |
| 256 | + "tags": ["tag1", "tag2"], |
265 | 257 | "enabled": true, |
266 | 258 | "validity": [ |
267 | 259 | { |
|
313 | 305 | } |
314 | 306 | } |
315 | 307 | } |
| 308 | + }, |
| 309 | + { |
| 310 | + "parameters": { |
| 311 | + "compositionID": "compositionID", |
| 312 | + "objectID": "rule-with-deduplication", |
| 313 | + "compositionRule": { |
| 314 | + "objectID": "rule-with-deduplication", |
| 315 | + "description": "my description", |
| 316 | + "enabled": true, |
| 317 | + "conditions": [ |
| 318 | + { |
| 319 | + "anchoring": "contains", |
| 320 | + "pattern": "harry" |
| 321 | + } |
| 322 | + ], |
| 323 | + "consequence": { |
| 324 | + "behavior": { |
| 325 | + "injection": { |
| 326 | + "main": { |
| 327 | + "source": { |
| 328 | + "search": { |
| 329 | + "index": "my-index" |
| 330 | + } |
| 331 | + } |
| 332 | + }, |
| 333 | + "injectedItems": [ |
| 334 | + { |
| 335 | + "key": "injectedItem", |
| 336 | + "source": { |
| 337 | + "search": { |
| 338 | + "index": "my-index" |
| 339 | + } |
| 340 | + }, |
| 341 | + "position": 0, |
| 342 | + "length": 3 |
| 343 | + } |
| 344 | + ], |
| 345 | + "deduplication": { |
| 346 | + "positioning": "highestInjected" |
| 347 | + } |
| 348 | + } |
| 349 | + } |
| 350 | + } |
| 351 | + } |
| 352 | + }, |
| 353 | + "request": { |
| 354 | + "path": "/1/compositions/compositionID/rules/rule-with-deduplication", |
| 355 | + "method": "PUT", |
| 356 | + "body": { |
| 357 | + "objectID": "rule-with-deduplication", |
| 358 | + "description": "my description", |
| 359 | + "enabled": true, |
| 360 | + "conditions": [ |
| 361 | + { |
| 362 | + "anchoring": "contains", |
| 363 | + "pattern": "harry" |
| 364 | + } |
| 365 | + ], |
| 366 | + "consequence": { |
| 367 | + "behavior": { |
| 368 | + "injection": { |
| 369 | + "main": { |
| 370 | + "source": { |
| 371 | + "search": { |
| 372 | + "index": "my-index" |
| 373 | + } |
| 374 | + } |
| 375 | + }, |
| 376 | + "injectedItems": [ |
| 377 | + { |
| 378 | + "key": "injectedItem", |
| 379 | + "source": { |
| 380 | + "search": { |
| 381 | + "index": "my-index" |
| 382 | + } |
| 383 | + }, |
| 384 | + "position": 0, |
| 385 | + "length": 3 |
| 386 | + } |
| 387 | + ], |
| 388 | + "deduplication": { |
| 389 | + "positioning": "highestInjected" |
| 390 | + } |
| 391 | + } |
| 392 | + } |
| 393 | + } |
| 394 | + } |
| 395 | + } |
316 | 396 | } |
317 | 397 | ] |
0 commit comments