Skip to content

Commit 11f1dae

Browse files
HNSW index: rename HnswDistanceType to VectorDistanceType, update docs
1 parent 9e9ae5c commit 11f1dae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

objectbox-java-api/src/main/java/io/objectbox/annotation/HnswIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
/**
6060
* The distance type used for the HNSW index. Changing this value causes re-indexing.
6161
*/
62-
HnswDistanceType distanceType() default HnswDistanceType.DEFAULT;
62+
VectorDistanceType distanceType() default VectorDistanceType.DEFAULT;
6363

6464
/**
6565
* When repairing the graph after a node was removed, this gives the probability of adding backlinks to the repaired

objectbox-java-api/src/main/java/io/objectbox/annotation/HnswDistanceType.java renamed to objectbox-java-api/src/main/java/io/objectbox/annotation/VectorDistanceType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
package io.objectbox.annotation;
1818

1919
/**
20-
* The distance algorithm used by an {@link HnswIndex} (vector search).
20+
* The vector distance algorithm used by an {@link HnswIndex} (vector search).
2121
*/
22-
public enum HnswDistanceType {
22+
public enum VectorDistanceType {
2323

2424
/**
2525
* The default; currently {@link #EUCLIDEAN}.

0 commit comments

Comments
 (0)