File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
fiftyone/brain/internal/core Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,10 @@ def _initialize(self):
176
176
coll = self ._samples ._dataset ._sample_collection
177
177
178
178
try :
179
- indexes = {i ["name" ]: i for i in coll .list_search_indexes ()}
179
+ indexes = {
180
+ i ["name" ]: i
181
+ for i in coll .aggregate ([{"$listSearchIndexes" : {}}])
182
+ }
180
183
except OperationFailure :
181
184
# https://www.mongodb.com/docs/manual/release-notes/7.0/#atlas-search-index-management
182
185
# https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview
@@ -259,7 +262,10 @@ def ready(self):
259
262
260
263
try :
261
264
coll = self ._samples ._dataset ._sample_collection
262
- indexes = {i ["name" ]: i for i in coll .list_search_indexes ()}
265
+ indexes = {
266
+ i ["name" ]: i
267
+ for i in coll .aggregate ([{"$listSearchIndexes" : {}}])
268
+ }
263
269
except OperationFailure :
264
270
# requires MongoDB Atlas 7.0 or later
265
271
return None
Original file line number Diff line number Diff line change 17
17
long_description += "\n ## License\n \n " + fh .read ()
18
18
19
19
20
- VERSION = "0.14.0 "
20
+ VERSION = "0.14.1 "
21
21
22
22
23
23
def get_version ():
You can’t perform that action at this time.
0 commit comments