mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Update test
This commit is contained in:
@ -406,55 +406,15 @@ async fn deleting_fragments_deletes_vectors() {
|
|||||||
"#);
|
"#);
|
||||||
|
|
||||||
let (value, code) = index.settings().await;
|
let (value, code) = index.settings().await;
|
||||||
snapshot!(value, @r###"
|
snapshot!(code, @"200 OK");
|
||||||
|
snapshot!(json_string!(value["embedders"], {
|
||||||
|
".rest.url" => "[url]",
|
||||||
|
}), @r#"
|
||||||
{
|
{
|
||||||
"displayedAttributes": [
|
|
||||||
"*"
|
|
||||||
],
|
|
||||||
"searchableAttributes": [
|
|
||||||
"*"
|
|
||||||
],
|
|
||||||
"filterableAttributes": [],
|
|
||||||
"sortableAttributes": [],
|
|
||||||
"rankingRules": [
|
|
||||||
"words",
|
|
||||||
"typo",
|
|
||||||
"proximity",
|
|
||||||
"attribute",
|
|
||||||
"sort",
|
|
||||||
"exactness"
|
|
||||||
],
|
|
||||||
"stopWords": [],
|
|
||||||
"nonSeparatorTokens": [],
|
|
||||||
"separatorTokens": [],
|
|
||||||
"dictionary": [],
|
|
||||||
"synonyms": {},
|
|
||||||
"distinctAttribute": null,
|
|
||||||
"proximityPrecision": "byWord",
|
|
||||||
"typoTolerance": {
|
|
||||||
"enabled": true,
|
|
||||||
"minWordSizeForTypos": {
|
|
||||||
"oneTypo": 5,
|
|
||||||
"twoTypos": 9
|
|
||||||
},
|
|
||||||
"disableOnWords": [],
|
|
||||||
"disableOnAttributes": [],
|
|
||||||
"disableOnNumbers": false
|
|
||||||
},
|
|
||||||
"faceting": {
|
|
||||||
"maxValuesPerFacet": 100,
|
|
||||||
"sortFacetValuesBy": {
|
|
||||||
"*": "alpha"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"pagination": {
|
|
||||||
"maxTotalHits": 1000
|
|
||||||
},
|
|
||||||
"embedders": {
|
|
||||||
"rest": {
|
"rest": {
|
||||||
"source": "rest",
|
"source": "rest",
|
||||||
"dimensions": 3,
|
"dimensions": 3,
|
||||||
"url": "http://127.0.0.1:53832",
|
"url": "[url]",
|
||||||
"indexingFragments": {
|
"indexingFragments": {
|
||||||
"withBreed": {
|
"withBreed": {
|
||||||
"value": "{{ doc.name }} is a {{ doc.breed }}"
|
"value": "{{ doc.name }} is a {{ doc.breed }}"
|
||||||
@ -477,13 +437,8 @@ async fn deleting_fragments_deletes_vectors() {
|
|||||||
},
|
},
|
||||||
"headers": {}
|
"headers": {}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"searchCutoffMs": null,
|
|
||||||
"localizedAttributes": null,
|
|
||||||
"facetSearch": true,
|
|
||||||
"prefixSearch": "indexingTime"
|
|
||||||
}
|
}
|
||||||
"###);
|
"#);
|
||||||
|
|
||||||
let (documents, code) = index
|
let (documents, code) = index
|
||||||
.get_all_documents(GetAllDocumentsOptions { retrieve_vectors: true, ..Default::default() })
|
.get_all_documents(GetAllDocumentsOptions { retrieve_vectors: true, ..Default::default() })
|
||||||
|
Reference in New Issue
Block a user