|
500 | 500 | } |
501 | 501 | } |
502 | 502 | }, |
| 503 | + { |
| 504 | + "testName": "customRanking and ranking sort alphabetically", |
| 505 | + "isSnippet": true, |
| 506 | + "parameters": { |
| 507 | + "indexName": "theIndexName", |
| 508 | + "indexSettings": { |
| 509 | + "customRanking": [ |
| 510 | + "asc(textual_attribute)" |
| 511 | + ], |
| 512 | + "ranking": [ |
| 513 | + "custom", |
| 514 | + "typo", |
| 515 | + "geo", |
| 516 | + "words", |
| 517 | + "filters", |
| 518 | + "proximity", |
| 519 | + "attribute", |
| 520 | + "exact" |
| 521 | + ] |
| 522 | + } |
| 523 | + }, |
| 524 | + "request": { |
| 525 | + "path": "/1/indexes/theIndexName/settings", |
| 526 | + "method": "PUT", |
| 527 | + "body": { |
| 528 | + "customRanking": [ |
| 529 | + "asc(textual_attribute)" |
| 530 | + ], |
| 531 | + "ranking": [ |
| 532 | + "custom", |
| 533 | + "typo", |
| 534 | + "geo", |
| 535 | + "words", |
| 536 | + "filters", |
| 537 | + "proximity", |
| 538 | + "attribute", |
| 539 | + "exact" |
| 540 | + ] |
| 541 | + } |
| 542 | + } |
| 543 | + }, |
| 544 | + { |
| 545 | + "testName": "relevancyStrictness", |
| 546 | + "isSnippet": true, |
| 547 | + "parameters": { |
| 548 | + "indexName": "theIndexName", |
| 549 | + "indexSettings": { |
| 550 | + "customRanking": [ |
| 551 | + "asc(textual_attribute)" |
| 552 | + ], |
| 553 | + "relevancyStrictness": 0 |
| 554 | + } |
| 555 | + }, |
| 556 | + "request": { |
| 557 | + "path": "/1/indexes/theIndexName/settings", |
| 558 | + "method": "PUT", |
| 559 | + "body": { |
| 560 | + "customRanking": [ |
| 561 | + "asc(textual_attribute)" |
| 562 | + ], |
| 563 | + "relevancyStrictness": 0 |
| 564 | + } |
| 565 | + } |
| 566 | + }, |
| 567 | + { |
| 568 | + "testName": "create replica index", |
| 569 | + "isSnippet": true, |
| 570 | + "parameters": { |
| 571 | + "indexName": "theIndexName", |
| 572 | + "indexSettings": { |
| 573 | + "replicas": [ |
| 574 | + "products_price_desc" |
| 575 | + ] |
| 576 | + } |
| 577 | + }, |
| 578 | + "request": { |
| 579 | + "path": "/1/indexes/theIndexName/settings", |
| 580 | + "method": "PUT", |
| 581 | + "body": { |
| 582 | + "replicas": [ |
| 583 | + "products_price_desc" |
| 584 | + ] |
| 585 | + } |
| 586 | + } |
| 587 | + }, |
| 588 | + { |
| 589 | + "testName": "unlink replica index", |
| 590 | + "isSnippet": true, |
| 591 | + "parameters": { |
| 592 | + "indexName": "theIndexName", |
| 593 | + "indexSettings": { |
| 594 | + "replicas": [ ] |
| 595 | + } |
| 596 | + }, |
| 597 | + "request": { |
| 598 | + "path": "/1/indexes/theIndexName/settings", |
| 599 | + "method": "PUT", |
| 600 | + "body": { |
| 601 | + "replicas": [ ] |
| 602 | + } |
| 603 | + } |
| 604 | + }, |
| 605 | + { |
| 606 | + "testName": "forwardToReplicas", |
| 607 | + "isSnippet": true, |
| 608 | + "parameters": { |
| 609 | + "indexName": "theIndexName", |
| 610 | + "indexSettings": { |
| 611 | + "searchableAttributes": ["name", "description"] |
| 612 | + }, |
| 613 | + "forwardToReplicas": true |
| 614 | + }, |
| 615 | + "request": { |
| 616 | + "path": "/1/indexes/theIndexName/settings", |
| 617 | + "method": "PUT", |
| 618 | + "body": { |
| 619 | + "searchableAttributes": ["name", "description"], |
| 620 | + "queryParameters": { |
| 621 | + "forwardToReplicas": "true" |
| 622 | + } |
| 623 | + } |
| 624 | + } |
| 625 | + }, |
| 626 | + { |
| 627 | + "testName": "maxValuesPerFacet", |
| 628 | + "isSnippet": true, |
| 629 | + "parameters": { |
| 630 | + "indexName": "theIndexName", |
| 631 | + "indexSettings": { |
| 632 | + "maxValuesPerFacet": 1000 |
| 633 | + } |
| 634 | + }, |
| 635 | + "request": { |
| 636 | + "path": "/1/indexes/theIndexName/settings", |
| 637 | + "method": "PUT", |
| 638 | + "body": { |
| 639 | + "maxValuesPerFacet": 1000 |
| 640 | + } |
| 641 | + } |
| 642 | + }, |
| 643 | + { |
| 644 | + "testName": "maxFacetHits", |
| 645 | + "isSnippet": true, |
| 646 | + "parameters": { |
| 647 | + "indexName": "theIndexName", |
| 648 | + "indexSettings": { |
| 649 | + "maxFacetHits": 1000 |
| 650 | + } |
| 651 | + }, |
| 652 | + "request": { |
| 653 | + "path": "/1/indexes/theIndexName/settings", |
| 654 | + "method": "PUT", |
| 655 | + "body": { |
| 656 | + "maxFacetHits": 1000 |
| 657 | + } |
| 658 | + } |
| 659 | + }, |
| 660 | + { |
| 661 | + "testName": "attributesForFaceting", |
| 662 | + "isSnippet": true, |
| 663 | + "parameters": { |
| 664 | + "indexName": "theIndexName", |
| 665 | + "indexSettings": { |
| 666 | + "attributesForFaceting": [ |
| 667 | + "genre", |
| 668 | + "author" |
| 669 | + ] |
| 670 | + } |
| 671 | + }, |
| 672 | + "request": { |
| 673 | + "path": "/1/indexes/theIndexName/settings", |
| 674 | + "method": "PUT", |
| 675 | + "body": { |
| 676 | + "attributesForFaceting": [ |
| 677 | + "genre", |
| 678 | + "author" |
| 679 | + ] |
| 680 | + } |
| 681 | + } |
| 682 | + }, |
503 | 683 | { |
504 | 684 | "testName": "setSettings allow all `indexSettings`", |
505 | 685 | "parameters": { |
|
0 commit comments