From 7bbb10155542a2b5f84d348db43869526c287f1f Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 20 May 2020 10:33:01 +0200 Subject: [PATCH] Prefix the attributes_for_faceting key name --- meilisearch-core/src/store/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meilisearch-core/src/store/main.rs b/meilisearch-core/src/store/main.rs index 3daf4c7f9..b94f4a331 100644 --- a/meilisearch-core/src/store/main.rs +++ b/meilisearch-core/src/store/main.rs @@ -14,7 +14,7 @@ use crate::RankedMap; use crate::settings::RankingRule; use super::{CowSet, DocumentsIds}; -const ATTRIBUTES_FOR_FACETING: &str = "attributes-for-faceting"; +const ATTRIBUTES_FOR_FACETING_KEY: &str = "attributes-for-faceting"; const CREATED_AT_KEY: &str = "created-at"; const CUSTOMS_KEY: &str = "customs"; const DISTINCT_ATTRIBUTE_KEY: &str = "distinct-attribute"; @@ -277,15 +277,15 @@ impl Main { } pub fn attributes_for_faceting<'txn>(&self, reader: &'txn heed::RoTxn) -> ZResult>>> { - self.main.get::<_, Str, CowSet>(reader, ATTRIBUTES_FOR_FACETING) + self.main.get::<_, Str, CowSet>(reader, ATTRIBUTES_FOR_FACETING_KEY) } pub fn put_attributes_for_faceting(self, writer: &mut heed::RwTxn, attributes: &Set) -> ZResult<()> { - self.main.put::<_, Str, CowSet>(writer, ATTRIBUTES_FOR_FACETING, attributes) + self.main.put::<_, Str, CowSet>(writer, ATTRIBUTES_FOR_FACETING_KEY, attributes) } pub fn delete_attributes_for_faceting(self, writer: &mut heed::RwTxn) -> ZResult { - self.main.delete::<_, Str>(writer, ATTRIBUTES_FOR_FACETING) + self.main.delete::<_, Str>(writer, ATTRIBUTES_FOR_FACETING_KEY) } pub fn ranking_rules(&self, reader: &heed::RoTxn) -> ZResult>> {