-
Type:
Improvement
-
Resolution: Gone away
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When creating an index and adding documents to it, it may be necessary to wait until all documents are indexed before running a query. This is particularly useful in scenarios where a temporary collection is created for immediate use (tests, jobs, etc.).
The requirement would be to have the status of document synchronisation to the search index in $listSearchIndexes. Whether there are documents pending or not. This status should change each time the documents in the collection are modified, until they are up to date in the search index.
This way, we can repeatedly query this status until the search index is in sync with the collection.
There is a Python implementation, but it is unreliable if documents are deleted or modified. https://github.com/mongodb-labs/pymongo-search-utils/blob/main/pymongo_search_utils/index.py#L259-L298
- is related to
-
PHPORM-399 Add a method to wait for search indexes to be ready
-
- Closed
-
- related to
-
DRIVERS-2995 Add `await` option for Search Index Operations
-
- Backlog
-