mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
integrate the new Settings in the dumps
This commit is contained in:
parent
d767990424
commit
7d748fa384
5 changed files with 16 additions and 13 deletions
|
@ -8,9 +8,10 @@ use log::info;
|
|||
use milli::update::{IndexDocumentsMethod, UpdateBuilder, UpdateFormat};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::{deserialize_some, Index};
|
||||
use crate::index_controller::UpdateResult;
|
||||
|
||||
use super::{deserialize_some, Index};
|
||||
|
||||
|
||||
#[derive(Clone, Default, Debug)]
|
||||
pub struct Checked;
|
||||
|
@ -35,7 +36,11 @@ pub struct Settings<T> {
|
|||
)]
|
||||
pub searchable_attributes: Option<Option<Vec<String>>>,
|
||||
|
||||
#[serde(default)]
|
||||
#[serde(
|
||||
default,
|
||||
deserialize_with = "deserialize_some",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
pub attributes_for_faceting: Option<Option<HashMap<String, String>>>,
|
||||
|
||||
#[serde(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue