Skip to content

Commit

Permalink
Merge branch 'v1.4' into v1.4-separator-options
Browse files Browse the repository at this point in the history
  • Loading branch information
guimachiavelli authored Sep 14, 2023
2 parents d12122c + f0054ab commit 3bcfabe
Show file tree
Hide file tree
Showing 8 changed files with 613 additions and 13 deletions.
14 changes: 14 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1142,3 +1142,17 @@ update_non_separator_tokens_1: |-
reset_non_separator_tokens_1: |-
curl \
-X DELETE 'http://localhost:7700/indexes/articles/settings/non-separator-tokens'
get_dictionary_1: |-
curl \
-X GET 'http://localhost:7700/indexes/books/settings/dictionary'
update_dictionary_1: |-
curl \
-X PUT 'http://localhost:7700/indexes/books/settings/dictionary' \
-H 'Content-Type: application/json' \
--data-binary '[
"J. R. R.",
"W. E. B."
]'
reset_dictionary_1: |-
curl \
-X DELETE 'http://localhost:7700/indexes/books/settings/dictionary'
295 changes: 293 additions & 2 deletions assets/misc/meilisearch-collection-postman.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"info": {
"_postman_id": "af5f1b99-255f-4eb3-9756-6636be3a0f16",
"name": "Meilisearch v1.3",
"_postman_id": "0f0a76a3-b6d0-4f7d-a8d6-532647b46074",
"name": "Meilisearch v1.4",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
Expand Down Expand Up @@ -1813,6 +1813,297 @@
}
},
"response": []
},
{
"name": "Get dictionary",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/dictionary",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"dictionary"
]
}
},
"response": []
},
{
"name": "Update dictionary",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "[\"J. R. R.\", \"W. E. B.\"]"
},
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/dictionary",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"dictionary"
]
}
},
"response": []
},
{
"name": "Reset dictionary",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/dictionary",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"dictionary"
]
}
},
"response": []
},
{
"name": "Get separator tokens",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/separator-tokens",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"separator-tokens"
]
}
},
"response": []
},
{
"name": "Update separator tokens",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "[\"|\", \"…\"]"
},
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/separator-tokens",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"separator-tokens"
]
}
},
"response": []
},
{
"name": "Reset separator tokens",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/separator-tokens",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"separator-tokens"
]
}
},
"response": []
},
{
"name": "Get non-separator tokens",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/non-separator-tokens",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"non-separator-tokens"
]
}
},
"response": []
},
{
"name": "Update non-separator tokens",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "[\"@\", \"#\"]"
},
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/non-separator-tokens",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"non-separator-tokens"
]
}
},
"response": []
},
{
"name": "Reset non-separator tokens",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"content-type": true
}
},
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{url}}/indexes/{{indexUID}}/settings/non-separator-tokens",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"settings",
"non-separator-tokens"
]
}
},
"response": []
}
]
},
Expand Down
5 changes: 5 additions & 0 deletions config/sidebar-learn.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@
"source": "learn/cookbooks/vercel.mdx",
"label": "Integrate Meilisearch Cloud with Vercel",
"slug": "vercel"
},
{
"source": "learn/primary_db_sync/meilisync_mysql.mdx",
"label": "Syncing databases with MySQL and meilisync",
"slug": "meilisync_mysql"
}
]
},
Expand Down
Loading

0 comments on commit 3bcfabe

Please sign in to comment.