mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Do not consider the searchable field as filterable
This commit is contained in:
parent
41c4a5b60d
commit
c31cadb54f
@ -673,15 +673,17 @@ impl<'s, A: AsRef<[u8]>> Store<'s, A> {
|
|||||||
let value =
|
let value =
|
||||||
serde_json::from_slice(content).map_err(InternalError::SerdeJson)?;
|
serde_json::from_slice(content).map_err(InternalError::SerdeJson)?;
|
||||||
|
|
||||||
let (facet_numbers, facet_strings) = extract_facet_values(&value);
|
if self.faceted_fields.contains(&attr) {
|
||||||
facet_numbers_values
|
let (facet_numbers, facet_strings) = extract_facet_values(&value);
|
||||||
.entry(attr)
|
facet_numbers_values
|
||||||
.or_insert_with(Vec::new)
|
.entry(attr)
|
||||||
.extend(facet_numbers);
|
.or_insert_with(Vec::new)
|
||||||
facet_strings_values
|
.extend(facet_numbers);
|
||||||
.entry(attr)
|
facet_strings_values
|
||||||
.or_insert_with(Vec::new)
|
.entry(attr)
|
||||||
.extend(facet_strings);
|
.or_insert_with(Vec::new)
|
||||||
|
.extend(facet_strings);
|
||||||
|
}
|
||||||
|
|
||||||
if self.searchable_fields.contains(&attr) {
|
if self.searchable_fields.contains(&attr) {
|
||||||
let content = match json_to_string(&value) {
|
let content = match json_to_string(&value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user