-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Upgrading from 1.0.x to 2.0.x | ||
|
||
## New features | ||
|
||
- In-graph deletes are supported through `GraphIndexBuilder.markNodeDeleted`. Deleted nodes | ||
are removed when `GraphIndexBuilder.cleanup` is called (which is not threadsafe wrt other concurrent changes). | ||
To write a graph with deleted nodes to disk, the a `Map` must be supplied indicating what ordinals | ||
to change the remaining node ids to -- on-disk graphs may not contain "holes" in the ordinal sequence. | ||
- `GraphSearcher.search` now has an experimental overload that takes a | ||
`float threshold` parameter that may be used instead of topK; (approximately) all the nodes with simlarities greater than the given threshold will be returned. | ||
|
||
## Primary API changes | ||
|
||
- `GraphIndexBuilder.complete` is now `cleanup`. | ||
- The `Bits` parameter to `GraphSearcher.search` is no longer nullable; | ||
pass `Bits.ALL` instead of `null` to indicate that all ordinals are acceptable. | ||
|
||
## Other changes to public classes | ||
|
||
- `NeighborQueue`, `NeighborArray`, and `NeighborSimilarity` have been renamed to | ||
`NodeQueue`, `NodeArray`, and `NodeSimilarity`, respectively. |