Skip to content

Commit a7ecdb0

Browse files
committed
vectorsearch-cities: hnsw-distance-type=Geo (via v5.0.0-rc4)
1 parent 3dd5c69 commit a7ecdb0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

examples/vectorsearch-cities/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (NOT TARGET objectbox) # Using "if" in case a (potential) parent project alre
1717
FetchContent_Declare(
1818
objectbox
1919
GIT_REPOSITORY https://github.com/objectbox/objectbox-c.git
20-
GIT_TAG v5.0.0-rc3 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
20+
GIT_TAG v5.0.0-rc4 # For latest versions, check https://github.com/objectbox/objectbox-c/releases
2121
)
2222
FetchContent_MakeAvailable(objectbox)
2323

examples/vectorsearch-cities/city.fbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ table City {
66
/// A 2D vector representing the city's location with latitude and longitude.
77
/// Using the "Geo" distance type, which specializes in geospatial search (haversine distance).
88
/// objectbox: index=hnsw, hnsw-dimensions=2
9-
// TODO requires Generator V5: objectbox: hnsw-distance-type=Geo
10-
/// objectbox: hnsw-distance-type=Euclidean
9+
/// objectbox: hnsw-distance-type=Geo
1110
location: [float];
1211
}

examples/vectorsearch-cities/objectbox-model.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"flags": 8,
2828
"hnswParams": {
2929
"dimensions": 2,
30-
"distance-type": "Euclidean"
30+
"distance-type": "Geo"
3131
}
3232
}
3333
]

0 commit comments

Comments
 (0)