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 authored Oct 23, 2024
1 parent f16f3d7 commit 9c18926
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 @@ -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
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 9c18926

Please sign in to comment.