mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-13 16:26:26 +00:00
feat: Change the STORED attribute property by DISPLAYED
This commit is contained in:
@ -269,10 +269,8 @@ where T: ser::Serialize,
|
||||
if let Some(attribute) = schema.attribute(key) {
|
||||
let props = schema.props(attribute);
|
||||
|
||||
if props.is_stored() {
|
||||
let value = rmp_serde::to_vec_named(value)?;
|
||||
document_store.set_document_field(document_id, attribute, value);
|
||||
}
|
||||
let serialized = rmp_serde::to_vec_named(value)?;
|
||||
document_store.set_document_field(document_id, attribute, serialized);
|
||||
|
||||
if props.is_indexed() {
|
||||
let indexer = Indexer { attribute, indexer, document_id };
|
||||
|
Reference in New Issue
Block a user