set new attributes indexed if needed

This commit is contained in:
Quentin de Quelen 2020-01-27 08:52:36 +01:00 committed by qdequele
parent b1528f9466
commit 585bba43a0
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
10 changed files with 100 additions and 648 deletions

View file

@ -305,7 +305,7 @@ pub fn serialize_value<'a, T: ?Sized>(
where
T: ser::Serialize,
{
let field_id = schema.get_or_create_empty(attribute.clone())?;
let field_id = schema.get_or_create(attribute.clone())?;
serialize_value_with_id(
txn,
@ -316,7 +316,7 @@ where
documents_fields_counts,
indexer,
ranked_map,
value
value,
)
}