Skip to content

Commit

Permalink
Merge pull request #160 from voxel51/release/v0.14.1
Browse files Browse the repository at this point in the history
Release v0.14.1
  • Loading branch information
findtopher authored Dec 11, 2023
2 parents b9b8cff + 24a2301 commit ef93d75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions fiftyone/brain/internal/core/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ def _initialize(self):
coll = self._samples._dataset._sample_collection

try:
indexes = {i["name"]: i for i in coll.list_search_indexes()}
indexes = {
i["name"]: i
for i in coll.aggregate([{"$listSearchIndexes": {}}])
}
except OperationFailure:
# https://www.mongodb.com/docs/manual/release-notes/7.0/#atlas-search-index-management
# https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview
Expand Down Expand Up @@ -259,7 +262,10 @@ def ready(self):

try:
coll = self._samples._dataset._sample_collection
indexes = {i["name"]: i for i in coll.list_search_indexes()}
indexes = {
i["name"]: i
for i in coll.aggregate([{"$listSearchIndexes": {}}])
}
except OperationFailure:
# requires MongoDB Atlas 7.0 or later
return None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
long_description += "\n## License\n\n" + fh.read()


VERSION = "0.14.0"
VERSION = "0.14.1"


def get_version():
Expand Down

0 comments on commit ef93d75

Please sign in to comment.