mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Format
This commit is contained in:
@ -3,7 +3,7 @@ pub mod index;
|
|||||||
pub mod server;
|
pub mod server;
|
||||||
pub mod service;
|
pub mod service;
|
||||||
|
|
||||||
use std::{fmt::{self, Display}, future::Future};
|
use std::fmt::{self, Display};
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub use index::GetAllDocumentsOptions;
|
pub use index::GetAllDocumentsOptions;
|
||||||
|
@ -757,9 +757,12 @@ async fn fragment_insertion() {
|
|||||||
let (server, uid, mut settings) = init_fragments_index().await;
|
let (server, uid, mut settings) = init_fragments_index().await;
|
||||||
let index = server.index(uid);
|
let index = server.index(uid);
|
||||||
|
|
||||||
settings["embedders"]["rest"]["indexingFragments"].as_object_mut().unwrap().insert(String::from("useless"), serde_json::json!({
|
settings["embedders"]["rest"]["indexingFragments"].as_object_mut().unwrap().insert(
|
||||||
|
String::from("useless"),
|
||||||
|
serde_json::json!({
|
||||||
"value": "This fragment is useless"
|
"value": "This fragment is useless"
|
||||||
}));
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
let (response, code) = index.update_settings(settings).await;
|
let (response, code) = index.update_settings(settings).await;
|
||||||
snapshot!(code, @"202 Accepted");
|
snapshot!(code, @"202 Accepted");
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
mod binary_quantized;
|
mod binary_quantized;
|
||||||
|
mod fragments;
|
||||||
#[cfg(feature = "test-ollama")]
|
#[cfg(feature = "test-ollama")]
|
||||||
mod ollama;
|
mod ollama;
|
||||||
mod openai;
|
mod openai;
|
||||||
mod rest;
|
mod rest;
|
||||||
mod settings;
|
mod settings;
|
||||||
mod fragments;
|
|
||||||
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user