You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ju...@apache.org on 2022/01/18 23:37:02 UTC
[lucene] branch main updated: LUCENE-10040: Update HnswGraph javadoc related to deletions
This is an automated email from the ASF dual-hosted git repository.
julietibs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 9b6d417 LUCENE-10040: Update HnswGraph javadoc related to deletions
9b6d417 is described below
commit 9b6d417d1cae01688d73a67070b3760bf893a8e5
Author: Julie Tibshirani <ju...@apache.org>
AuthorDate: Tue Jan 18 15:31:07 2022 -0800
LUCENE-10040: Update HnswGraph javadoc related to deletions
Previously it claimed the search method did not handle deletions.
---
lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraph.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraph.java b/lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraph.java
index 511f889..9af1017 100644
--- a/lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraph.java
+++ b/lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraph.java
@@ -50,8 +50,8 @@ import org.apache.lucene.util.SparseFixedBitSet;
* </ul>
*
* <p>Note: The graph may be searched by multiple threads concurrently, but updates are not
- * thread-safe. Also note: there is no notion of deletions. Document searching built on top of this
- * must do its own deletion-filtering.
+ * thread-safe. The search method optionally takes a set of "accepted nodes", which can be used to
+ * exclude deleted documents.
*/
public final class HnswGraph extends KnnGraphValues {