|
2 | 2 | # Every example written here will be automatically fetched by |
3 | 3 | # the documentation on build |
4 | 4 | --- |
5 | | -## BEGIN /references/api |
| 5 | +## BEGIN /references/api |
6 | 6 | # get_indexes_indexUid |
7 | 7 | get_one_index_1: |- |
8 | 8 | curl \ |
@@ -68,7 +68,7 @@ add_or_update_documents_1: |- |
68 | 68 | delete_all_documents_1: |- |
69 | 69 | curl \ |
70 | 70 | -X DELETE 'MEILISEARCH_URL/indexes/movies/documents' |
71 | | -# delete_indexes_indexUid_documentId |
| 71 | +# delete_indexes_indexUid_documents_documentId |
72 | 72 | delete_one_document_1: |- |
73 | 73 | curl \ |
74 | 74 | -X DELETE 'MEILISEARCH_URL/indexes/movies/documents/25684' |
@@ -581,6 +581,24 @@ update_vector_store_settings_1: |- |
581 | 581 | reset_vector_store_settings_1: |- |
582 | 582 | curl \ |
583 | 583 | -X DELETE 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store' |
| 584 | +# get_indexes_indexUid_settings_chat |
| 585 | +get_chat_settings_1: |- |
| 586 | + curl \ |
| 587 | + -X GET 'MEILISEARCH_URL/indexes/INDEX_NAME/settings/chat' |
| 588 | +# patch_indexes_indexUid_settings_chat |
| 589 | +update_chat_settings_1: |- |
| 590 | + curl \ |
| 591 | + -X PATCH 'MEILISEARCH_URL/indexes/INDEX_NAME/settings/chat' \ |
| 592 | + -H 'Content-Type: application/json' \ |
| 593 | + --data-binary '{ |
| 594 | + "description": "An index of movies.", |
| 595 | + "documentTemplate": "A movie titled '{{doc.title}}' released in {{ doc.release_date }}", |
| 596 | + "documentTemplateMaxBytes": 400 |
| 597 | + }' |
| 598 | +# delete_indexes_indexUid_settings_chat |
| 599 | +reset_chat_settings_1: |- |
| 600 | + curl \ |
| 601 | + -X DELETE 'MEILISEARCH_URL/indexes/INDEX_NAME/settings/chat' |
584 | 602 | ### END settings + subroutes |
585 | 603 |
|
586 | 604 | # post_dumps |
@@ -655,6 +673,18 @@ delete_documents_by_filter_1: |- |
655 | 673 | --data-binary '{ |
656 | 674 | "filter": "genres = action OR genres = adventure" |
657 | 675 | }' |
| 676 | +# post_indexes_indexUid_documents_edit |
| 677 | +edit_documents_by_function_1: |- |
| 678 | + curl \ |
| 679 | + -X POST 'MEILISEARCH_URL/indexes/movies/documents/edit' \ |
| 680 | + -H 'Content-Type: application/json' \ |
| 681 | + --data-binary '{ |
| 682 | + "function": "doc.new_field = `a]new[value`", |
| 683 | + "filter": "id > 3000", |
| 684 | + "context": { |
| 685 | + "max_title_length": 10 |
| 686 | + } |
| 687 | + }' |
658 | 688 | # get_experimental_features |
659 | 689 | get_experimental_features_1: |- |
660 | 690 | curl \ |
@@ -1740,7 +1770,7 @@ multi_search_remote_federated_1: |- |
1740 | 1770 | } |
1741 | 1771 | } |
1742 | 1772 | ] |
1743 | | - |
| 1773 | +
|
1744 | 1774 | search_parameter_reference_media_1: |- |
1745 | 1775 | curl \ |
1746 | 1776 | -X POST 'MEILISEARCH_URL/indexes/INDEX_NAME/search' \ |
|
0 commit comments