feat: Change the STORED attribute property by DISPLAYED

This commit is contained in:
Clément Renault
2019-09-03 11:14:20 +02:00
parent 8be3fc1a66
commit 50b8a66794
4 changed files with 24 additions and 25 deletions

View File

@ -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 };