Skip to content

Commit

Permalink
Fix vector search metadata serialization (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
jotare committed Oct 28, 2024
1 parent 57d0ca1 commit 711de5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nidx/nidx_vector/src/data_point/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ impl Neighbour {
}
pub fn metadata(&self) -> Option<&[u8]> {
let metadata = Node::metadata(&self.node);
metadata.is_empty().then_some(metadata)
(!metadata.is_empty()).then_some(metadata)
}
}

Expand Down
2 changes: 1 addition & 1 deletion nucliadb_vectors/src/data_point/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ impl Neighbour {
}
pub fn metadata(&self) -> Option<&[u8]> {
let metadata = Node::metadata(&self.node);
metadata.is_empty().then_some(metadata)
(!metadata.is_empty()).then_some(metadata)
}
}

Expand Down

0 comments on commit 711de5c

Please sign in to comment.