Skip to content

Commit

Permalink
v1.4 (#2550)
Browse files Browse the repository at this point in the history
* v1.4: New `dictionary` index setting (#2551)

* docker version bump (#2558)

* update postman collection (#2559)

* v1.4: Separator and non-separator tokens (#2553)

* Fix postman collection for index swap and search for facet value (#2565)

---------

Co-authored-by: Clémentine U. - curqui <clementine@meilisearch.com>
  • Loading branch information
guimachiavelli and curquiza authored Sep 25, 2023
1 parent e4fdc3d commit 529b655
Show file tree
Hide file tree
Showing 8 changed files with 674 additions and 18 deletions.
36 changes: 36 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1108,3 +1108,39 @@ search_parameter_guide_attributes_to_search_on_1: |-
"q": "adventure",
"attributesToSearchOn": ["overview"]
}'
get_separator_tokens_1: |-
curl \
-X GET 'http://localhost:7700/indexes/articles/settings/separator-tokens'
update_separator_tokens_1: |-
curl \
-X PUT 'http://localhost:7700/indexes/articles/settings/separator-tokens' \
-H 'Content-Type: application/json' \
--data-binary '["|", "&hellip;"]'
reset_separator_tokens_1: |-
curl \
-X DELETE 'http://localhost:7700/indexes/articles/settings/separator-tokens'
get_non_separator_tokens_1: |-
curl \
-X GET 'http://localhost:7700/indexes/articles/settings/non-separator-tokens'
update_non_separator_tokens_1: |-
curl \
-X PUT 'http://localhost:7700/indexes/articles/settings/non-separator-tokens' \
-H 'Content-Type: application/json' \
--data-binary '["@", "#"]'
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'
299 changes: 296 additions & 3 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": "ca046707-e482-4e2c-a524-0574bd10dd5f",
"name": "Meilisearch v1.4",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
Expand Down Expand Up @@ -1812,6 +1812,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": "[\"|\", \"&hellip;\"]"
},
"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 Expand Up @@ -2165,11 +2456,13 @@
"raw": "{ \n \"facetQuery\": \"adventure\",\n \"facetName\": \"genre\",\n \"q\": \"prinec\"\n}"
},
"url": {
"raw": "{{url}}/facet-search",
"raw": "{{url}}/indexes/{{indexUID}}/facet-search",
"host": [
"{{url}}"
],
"path": [
"indexes",
"{{indexUID}}",
"facet-search"
]
}
Expand Down
Loading

0 comments on commit 529b655

Please sign in to comment.